From: Oleg Broytman Date: Thu, 1 Jun 2006 19:54:36 +0000 (+0000) Subject: More URL schemes. X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b534545bb6f6e6203e41b8219d86168a96adb622;p=phdru.name%2Fphdru.name.git More URL schemes. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@51 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- diff --git a/phd_pp.py b/phd_pp.py index 08b6bf6..d1ad2a1 100644 --- a/phd_pp.py +++ b/phd_pp.py @@ -6,7 +6,7 @@ from Cheetah.Template import Template urlchars = r'[A-Za-z0-9/:@_%~#=&\.\-\?\+\$,]+' urlendchar = r'[A-Za-z0-9/]' -url = r'["=]?((about|gopher|http|https|ftp|mailto|file):%s)' % \ +url = r'["=]?((about|file|ftp|gopher|http|https|mailto|news|telnet):%s)' % \ (urlchars+urlendchar) def _url2href(match):