diff --git a/lib/core/option.py b/lib/core/option.py index cd8cd8fc1..5c458c2b1 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -242,6 +242,7 @@ def _feedTargetsDict(reqFile, addedTargetUrls): for match in reqResList: request = match if isinstance(match, basestring) else match.group(0) + request = re.sub(r"\A[^\w]+", "", request) schemePort = re.search(r"(http[\w]*)\:\/\/.*?\:([\d]+).+?={10,}", request, re.I | re.S)