diff --git a/src/unmapjs/extractor.py b/src/unmapjs/extractor.py index 9fe0de4..f40108b 100644 --- a/src/unmapjs/extractor.py +++ b/src/unmapjs/extractor.py @@ -1,5 +1,6 @@ import re from pathlib import Path +from urllib.parse import urlparse from .constants import SOURCE_PATH_PREFIXES from .ui import log_verbose @@ -71,6 +72,7 @@ def clean_source_path(path): return None cleaned = cleaned.lstrip("./") + cleaned = urlparse(cleaned).path if not cleaned: return None