Skip to content

Commit 02fb783

Browse files
Update src/validator.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 748f567 commit 02fb783

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def _resolve_multi_listing(url: str, title: str, company: str) -> str | None:
266266
# Links to known job boards get a bonus
267267
try:
268268
link_host = urlparse(href).hostname or ""
269-
link_host = link_host.lower().lstrip("www.")
269+
link_host = link_host.lower().removeprefix("www.")
270270
parts = link_host.split(".")
271271
for i in range(len(parts) - 1):
272272
if ".".join(parts[i:]) in _JOB_LINK_DOMAINS:

0 commit comments

Comments
 (0)