Skip to content

Commit

Permalink
Use a more simple regex
Browse files Browse the repository at this point in the history
refs #1167

Co-authored-by: Kevin <[email protected]>
  • Loading branch information
2 people authored and diegogangl committed Jan 9, 2025
1 parent ba3dbde commit 6ea94b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GTG/core/urlregex.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
UTF_CHARS = r'a-z0-9_\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u00ff'

SUBST_DICT = {
"domain": r'([\.-]|[^\s_\!\.\/])+\.[a-z]{1,}(?::[0-9]+)?',
"domain": r'([\.-]|[^\s_\!\.\/])+\.[a-z]+(?::[0-9]+)?',
"path": r'(?:[\.,]?[%s!\*\'\(\);:&=\+\$/%s#\[\]\-_,~@])' % (
UTF_CHARS, '%'),
"query": r'[a-z0-9!\*\'\(\);:&=\+\$/%#\[\]\-_\.,~]',
Expand Down

0 comments on commit 6ea94b9

Please sign in to comment.