Skip to content

Commit 1965684

Browse files
authored
Merge pull request #6 from go-irc/master
Add some tag value parsing edge cases
2 parents e1a2ee1 + cb0cf57 commit 1965684

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/msg-split.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,3 +282,18 @@ tests:
282282
- "#foo-bar"
283283
- "+o"
284284
- "foobar"
285+
286+
# If a tag value has a slash followed by a character which doesn't need
287+
# to be escaped, the slash should be dropped.
288+
- input: "@tag1=value\\1 COMMAND"
289+
atoms:
290+
tags:
291+
tag1: "value1"
292+
verb: "COMMAND"
293+
294+
# A slash at the end of a tag value should be dropped
295+
- input: "@tag1=value1\\ COMMAND"
296+
atoms:
297+
tags:
298+
tag1: "value1"
299+
verb: "COMMAND"

0 commit comments

Comments
 (0)