Skip to content

Commit 4c8cbca

Browse files
committed
msg-split: Clarify how tag values should be parsed (thanks Preston!)
1 parent 1965684 commit 4c8cbca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/msg-split.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,13 @@ tests:
283283
- "+o"
284284
- "foobar"
285285

286+
# tag values should be parsed char-at-a-time to prevent wayward replacements.
287+
- input: "@tag1=value\\\\ntest COMMAND"
288+
atoms:
289+
tags:
290+
tag1: "value\\ntest"
291+
verb: "COMMAND"
292+
286293
# If a tag value has a slash followed by a character which doesn't need
287294
# to be escaped, the slash should be dropped.
288295
- input: "@tag1=value\\1 COMMAND"

0 commit comments

Comments
 (0)