Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivanmatthew committed Apr 19, 2024
1 parent 634a540 commit 058c7af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion advanced_self_diagnosis/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def create_target_json(target_urls):
def scrape_urls(code):
urls = []
for line in code.split("\n"):
match = re.search(r"[\*\/].*|https?://([^\}\'\"\r\n\t\f\v ]*?\..*?)(?<![/';])/+?", line)
match = re.search(r"[\*\/].*|https?://([^\}\'\"\r\n\t\f\v ]*?\..*?)[/';]+?", line)
if match and match.group(1):
urls.append(match.group(1))

Expand Down

0 comments on commit 058c7af

Please sign in to comment.