Skip to content

Commit

Permalink
just use a standard http url regex
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanker committed Feb 1, 2025
1 parent b118624 commit 96fccea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def check_mimetype(url) -> str:

def extract(text):
url = text.strip()
match = re.search(r"\[<?(https?:[^|>]+)\|?[^|>]+>?\]", url)
match = re.search(r"(https?:[^|>\]]+)", url)
if match:
url = match.group(1)
if is_youtube_video(url):
Expand Down

0 comments on commit 96fccea

Please sign in to comment.