aboutsummaryrefslogtreecommitdiffstats
path: root/asspb_test.go
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-10-25 18:11:54 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-10-25 18:11:54 -0700
commit2089fa738b2299d864b614567e97d2bc57556fb4 (patch)
tree6430455e750deabe9fc39cfd69a593d999684f1b /asspb_test.go
parentDowngrade required Go version (diff)
downloadccl-2089fa738b2299d864b614567e97d2bc57556fb4.tar.zst
Make sure to remove \r\n as well as \n for Windows
Diffstat (limited to 'asspb_test.go')
-rw-r--r--asspb_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/asspb_test.go b/asspb_test.go
index 80d0e41..7600dee 100644
--- a/asspb_test.go
+++ b/asspb_test.go
@@ -183,6 +183,10 @@ field: 2`,
msg: `field: 'remove newline \
from string'`,
want: map[string]any{"field": "remove newline from string"},
+ }, {
+ desc: "RemoveNewlineWindows",
+ msg: "field: 'remove newline \\\r\nfrom string'",
+ want: map[string]any{"field": "remove newline from string"},
}} {
t.Run(tc.desc, func(t *testing.T) {
t.Parallel()