Skip to content

Commit

Permalink
Merge branch 'xakz-extends-regexp-matching'
Browse files Browse the repository at this point in the history
  • Loading branch information
firecat53 committed Nov 30, 2014
2 parents b790eaa + 823bbf2 commit 3d1255c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions urlscan/urlscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ def handle_entityref(self, name):
# added above.
self.handle_data('&%s;' % name)

urlinternalpattern = r'[{}a-zA-Z/\-_0-9%?&.=:;+,#~]'
urltrailingpattern = r'[{}a-zA-Z/\-_0-9%&=+#]'
urlinternalpattern = r'[{}()@a-zA-Z/\-_0-9%?&.=:;+,#~]'
urltrailingpattern = r'[{}()@a-zA-Z/\-_0-9%&=+#]'
httpurlpattern = (r'(?:(https?|file)://' + urlinternalpattern +
r'*' + urltrailingpattern + r')')
# Used to guess that blah.blah.blah.TLD is a URL.
Expand Down

0 comments on commit 3d1255c

Please sign in to comment.