Skip to content

Commit

Permalink
Ignore subdomains
Browse files Browse the repository at this point in the history
Can be re-implemented later on with proper solution.
  • Loading branch information
Ivanmatthew committed Apr 19, 2024
1 parent 80c9352 commit 8d9cca7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "advanced-self-diagnosis"
version = "0.1.2"
version = "0.1.3"
description = ""
authors = ["Ivanmatthew <[email protected]>"]
package-mode = false
Expand Down

0 comments on commit 8d9cca7

Please sign in to comment.