git.iko.soy/typeable/pandoc
on master help sign in
Modified html2x.pl URL validation regex:
78ff2d2fiddlosopher
web/html2x.pl+1−1
@@ -19,7 +19,7 @@ if ($format =~ /^markdown\+$/) {
19}
19}
20
20
21# Validate URL and format
21# Validate URL and format
22−unless ($url =~ /^(https?:\/\/)?[\w#_-]+(\.[\w#_-]+)+[\w\/#=?_.-]*$/) {
22+unless ($url =~ /^(https?:\/\/)?[\w#_-]+(\.[\w#_-]+)+(:\d+)?[\w\/#=:?_.-]*$/) {
23 die "Illegal URL: $url\n" ;
23 die "Illegal URL: $url\n" ;
24}
24}
25unless ($format =~ /^markdown\+?|rst|latex|context|rtf|man|docbook$/) {
25unless ($format =~ /^markdown\+?|rst|latex|context|rtf|man|docbook$/) {