~ibid-core/ibid/old-trunk-pack-0.92

« back to all changes in this revision

Viewing changes to ibid/plugins/url.py

  • Committer: Stefano Rivera
  • Date: 2009-08-20 15:31:15 UTC
  • mfrom: (724.3.4 url-output-404159)
  • Revision ID: stefano@rivera.za.net-20090820153115-9rm5gtuuyeg0d8z4
Surround URLs in <brackets>, makes for slightly more parseable output
https://code.edge.launchpad.net/~stefanor/ibid/url-output-404159/+merge/9250

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
            r'(?:[^@.]\b(?!\.)|\A)('        # Match a boundry, but not on an e-mail address
130
130
            r'(?:\w+://|(?:www|ftp)\.)\S+?' # Match an explicit URL or guess by www.
131
131
            r'|[^@\s:]+\.(?:%s)(?:/\S*?)?'  # Guess at the URL based on TLD
132
 
            r')[\[>)\]"\'.]*(?:\s|\Z)'      # End Boundry
 
132
            r')[\[>)\]"\'.,;:]*(?:\s|\Z)'   # End Boundry
133
133
        ) % '|'.join(tlds), re.I | re.DOTALL)
134
134
 
135
135
    @handler