mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-09 15:15:08 +02:00
Simplify stripBackslash
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user