summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-11-14 22:05:47 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-11-14 22:08:14 -0800
commit508aab0bd555b4ca7632a78957ebb91c758f0a7e (patch)
tree175d3c204f86d4579107bde273a5a78a59e6fc1f /test
parent22d69c8916f5cf53c4329c7757d063093cf39928 (diff)
Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters.
This fixes a bug where pandoc would stop parsing a URI with an empty attribute: for example, `&a=&b=` wolud stop at `a`. (The uri parser tries to guess which punctuation characters are part of the URI and which might be punctuation after it.) Closes #4068.
Diffstat (limited to 'test')
-rw-r--r--test/command/4068.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/command/4068.md b/test/command/4068.md
new file mode 100644
index 000000000..7b43a7084
--- /dev/null
+++ b/test/command/4068.md
@@ -0,0 +1,9 @@
+```
+pandoc -f mediawiki -t native
+[https://domain.com/script.php?a=1&b=2&c=&d=4 open productname bugs]
+
+[http://domain.com?a=. open productname bugs]
+^D
+[Para [Link ("",[],[]) [Str "open",Space,Str "productname",Space,Str "bugs"] ("https://domain.com/script.php?a=1&b=2&c=&d=4","")]
+,Para [Str "[",Link ("",[],[]) [Str "http://domain.com?a="] ("http://domain.com?a=",""),Str ".",Space,Str "open",Space,Str "productname",Space,Str "bugs]"]]
+```