]> git.phdru.name Git - phdru.name/phdru.name.git/commitdiff
Copied some URL regexps from Gajim.
authorOleg Broytman <phd@phdru.name>
Mon, 19 May 2008 15:31:23 +0000 (15:31 +0000)
committerOleg Broytman <phd@phdru.name>
Mon, 19 May 2008 15:31:23 +0000 (15:31 +0000)
git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@75 7bb0bf08-9e0d-0410-b083-99cee3bf18b8

phd_pp.py

index b3ad03aec704cbc5f27fc3f0cf9b108debc736b6..9cd8ca1ab1fbbaf21b7577ae63e046295bffe342 100644 (file)
--- a/phd_pp.py
+++ b/phd_pp.py
@@ -2,11 +2,11 @@ import os, re, time, urllib
 from Cheetah.Template import Template
 
 
-# Copied from ZWiki
+# Copied from ZWiki and Gajim
 
 urlchars         = r'[A-Za-z0-9/:@_%~#=&\.\-\?\+\$,]+'
 urlendchar       = r'[A-Za-z0-9/]'
-url              = r'["=]?((about|file|ftp|gopher|http|https|mailto|news|telnet):%s)' % \
+url              = r'["=]?((about|file|ftp|gopher|http|https|mailto|news|telnet|ed2k|irc|sip|magnet):%s)' % \
                    (urlchars+urlendchar)
 
 def _url2href(match):