From b130d8d2b518788f45ce20acb0f21220a403fcbc Mon Sep 17 00:00:00 2001 From: tmdeveloper007 Date: Sat, 25 Jul 2026 09:57:17 +0000 Subject: [PATCH] fix: use len(split_marker) for URL extraction in parse_resource --- src/utils/url_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/url_validator.py b/src/utils/url_validator.py index af9e4953..5bee286a 100644 --- a/src/utils/url_validator.py +++ b/src/utils/url_validator.py @@ -71,7 +71,7 @@ def parse_resource(raw: str) -> dict: idx = raw.find(split_marker) if idx != -1: label = raw[:idx].strip() - url = raw[idx + 2:].strip() # skip ": " → starts at "http" + url = raw[idx + len(split_marker):].strip() return {"label": label, "url": url} # No label prefix — treat the entire string as a URL