git.iko.soy/typeable/pandoc
on master help sign in
Modified html2x.pl URL validation regex:

+ allow port number in URL + allow : in URL path git-svn-id: https://pandoc.googlecode.com/svn/trunk@1024 788f1e2b-df1e-0410-8736-df70ead52e1b

commit78ff2d2fee65ce9280d2172c05db32f49c3f7fa0 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateMon 17 Sep 2007, 19:55 (19 years ago) parent65047e3
1 file changed+1−1
web/html2x.pl+1−1
web/html2x.pl+1−1
@@ -19,7 +19,7 @@ if ($format =~ /^markdown\+$/) {
1919}
2020
2121# Validate URL and format
22−unless ($url =~ /^(https?:\/\/)?[\w#_-]+(\.[\w#_-]+)+[\w\/#=?_.-]*$/) {
22+unless ($url =~ /^(https?:\/\/)?[\w#_-]+(\.[\w#_-]+)+(:\d+)?[\w\/#=:?_.-]*$/) {
2323 die "Illegal URL: $url\n" ;
2424}
2525unless ($format =~ /^markdown\+?|rst|latex|context|rtf|man|docbook$/) {