X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=phd_pp.py;fp=phd_pp.py;h=d1ad2a1374c87e9536884530dca46c4f0afa5d8d;hb=b534545bb6f6e6203e41b8219d86168a96adb622;hp=08b6bf6573a8f8ef29042196809480d7fac226d6;hpb=91febbbbaed6330bf64dd711f4d4a101501b8126;p=phdru.name%2Fphdru.name.git 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):