Simplify stripBackslash

This commit is contained in:
David Dworken
2023-02-14 08:47:38 -08:00
parent 4b5b729328
commit 2ae54ef74e
2 changed files with 6 additions and 5 deletions

View File

@ -489,6 +489,9 @@ func TestStripBackslash(t *testing.T) {
{"f \\bar", "f bar"},
{"f\\:bar", "f:bar"},
{"f\\:bar\\", "f:bar"},
{"\\f\\:bar\\", "f:bar"},
{"", ""},
{"\\\\", ""},
}
for _, tc := range testcases {
actual := stripBackslash(tc.input)