From b534545bb6f6e6203e41b8219d86168a96adb622 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 1 Jun 2006 19:54:36 +0000 Subject: [PATCH] More URL schemes. git-svn-id: file:///home/phd/archive/SVN/phdru.name/scripts@51 7bb0bf08-9e0d-0410-b083-99cee3bf18b8 --- phd_pp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.39.5