Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Commit

Permalink
Upgrade to latest magiclink version
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Feb 6, 2015
1 parent 953fa6d commit 1716bfc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions markdown/extensions/magiclink.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@

RE_LINK = r'''(?x)(?i)
(
(
(ht|f)tp(s?)://(([a-zA-Z0-9\-._]+(\.[a-zA-Z0-9\-._]+)+)|localhost)| # (HTTP|FTP)://
(?P<www>w{3})(\.[a-zA-Z0-9\-._]+(\.[a-zA-Z0-9\-._]+)+) # WWW.
\b(?:
(?:ht|f)tps?://(?:(?:[a-z\d\-_]+(?:\.[a-z\d\-._]+)+)|localhost)| # (http|ftp)://
(?P<www>w{3}\.)[a-z\d\-_]+(?:\.[a-z\d\-._]+)+ # www.
)
(/?)([a-zA-Z0-9\-.?,'/+&%$#_]*)([\d\w./%+-=&?:"',|~;]*)
[A-Za-z\d\-_~:/?#@!$*+=]
/?[a-z\d\-._?,!'(){}\[\]/+&@%$#=:"|~;]* # url path, fragments, and query stuff
[a-z\d\-_~:/#@$*+=] # allowed end chars
)
'''

Expand Down

0 comments on commit 1716bfc

Please sign in to comment.