Skip to content

Commit

Permalink
Update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
TheExplainthis committed Mar 23, 2023
1 parent 6335734 commit 495d4b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

class Website:
def get_url_from_text(self, text: str):
url_regex = re.compile(r'https?://\S+')
url_regex = re.compile(r'^https?://\S+')
match = re.search(url_regex, text)
if match:
return match.group()
Expand Down

0 comments on commit 495d4b4

Please sign in to comment.