Skip to content

Commit 108c998

Browse files
authored
Fix msg-join for empty/missing tag values. (#24)
1 parent a1c8e14 commit 108c998

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/msg-join.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,21 @@ tests:
174174
- ":coolguy foo b\tar :baz"
175175

176176
# with tags
177+
- desc: Tag with empty value and space-filled trailing.
178+
atoms:
179+
tags:
180+
"asd": ""
181+
source: "coolguy"
182+
verb: "foo"
183+
params:
184+
- "bar"
185+
- "baz"
186+
- " "
187+
matches:
188+
# Implementations MAY normalise tag values by converting the empty form to the missing form
189+
- "@asd :coolguy foo bar baz : "
190+
- "@asd= :coolguy foo bar baz : "
191+
177192
- desc: Tag with no value and space-filled trailing.
178193
atoms:
179194
tags:
@@ -185,6 +200,7 @@ tests:
185200
- "baz"
186201
- " "
187202
matches:
203+
# MUST NOT convert values from missing to empty, to prevent size limit issues
188204
- "@asd :coolguy foo bar baz : "
189205

190206
- desc: Tags with escaped values.

0 commit comments

Comments
 (0)