From 4a7c9e6fea56a14439146bee0c8ce3239d43973c Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Sun, 11 Mar 2018 06:42:34 +0000 Subject: [PATCH] Recognzie one more URL. --- fixup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixup.rb b/fixup.rb index 6461334..7b1f8bf 100644 --- a/fixup.rb +++ b/fixup.rb @@ -351,7 +351,7 @@ log 0, 'add figure titles required by Docbook for referable figures' end log 0, 'adding http:// to all URLs and turn them into links' -data.map {|lin| lin.gsub!(/(^|\s+)([-a-z0-9\\.]+\.(cc|com|edu|eu|io|is|it|kr|net|nl|nz|org|se))/, '\\1http://\\2')} +data.map {|lin| lin.gsub!(/(^|\s+)([-a-z0-9\\.]+\.(ca|cc|com|edu|eu|io|is|it|kr|net|nl|nz|org|se))/, '\\1http://\\2')} data.map {|lin| lin.gsub!(/\b(https?:\/\/[-a-z0-9\\.]+)(\/[-\\.\/a-zA-Z0-9#_\?&=,]+[-\/a-zA-Z0-9#_\?&=,])?/, '[](\\1\\2)')} log 0, 'Writing processed file' -- 2.47.2