summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-12-28 04:18:30 +0100
committerJonas Smedegaard <dr@jones.dk>2014-12-28 04:23:06 +0100
commit33d10b0888f498d379ca9a9149ac2c33703e46bf (patch)
treebab0c74a2e79ec16ae7a0d31323620f930a4ceef
parenta93fa74e5d762a9854820cfc66c9d628fbb6b803 (diff)
Fix URI-escape only path (not host part).
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e94ee66..87993c0 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ source_basename = EUT/2nd-edition
re_blockquote = s|\n*(</?blockquote>)\n*|\n$$1\n|g
# work around modest URL parsing <https://github.com/jgm/pandoc/issues/1838>
-re_urlencode = s|\bhttp[^\s\"]+?\K([-=]+)|uri_escape($$1, "-=")|eg
+re_urlencode = s|\bhttps?://[^\s/\|}]+[^\s\"]+?\K([-=]+)|uri_escape($$1, "-=")|eg
templates = template.tex header.tex before.tex after.tex