sanitize input data (#2467)
* sanitize input data * fix test * relax filter on customInfo
This commit is contained in:
1 parent
779bffb3dc
commit
7a3591c834
6 files changed
+61
-23
No files matched your search
+3
-3
@@ -529,9 +529,9 @@ func TestReadLines(t *testing.T) {
|
||||
{"foo\r\n\000\r\nbar\r\n", 10, nil, true, false},
|
||||
{"\033P\033\\", 10, []string{"\033P\033\\"}, false, true},
|
||||
{"\033Pq\"1;1;1;1#0@\033\\", 10, []string{"\033Pq\"1;1;1;1#0@\033\\"}, false, true},
|
||||
{"\033P\000\033\\", 10, []string{"\033P\000\033\\"}, false, true},
|
||||
{"\033P\n\033\\", 10, []string{"\033P\n\033\\"}, false, true},
|
||||
{"\033P\r\n\033\\", 10, []string{"\033P\r\n\033\\"}, false, true},
|
||||
{"\033P\000\033\\", 10, []string{"\033\\"}, false, false},
|
||||
{"\033P\n\033\\", 10, []string{"\033\\"}, false, false},
|
||||
{"\033P\r\n\033\\", 10, []string{"", "\033\\"}, false, false},
|
||||
{"\033P\033\\\033P\033\\", 10, []string{"\033P\033\\", "\033P\033\\"}, false, true},
|
||||
{"foo\033P\033\\bar", 10, []string{"foo", "\033P\033\\", "bar"}, false, true},
|
||||
{"foo\033P\033\\bar\033P\033\\baz", 10, []string{"foo", "\033P\033\\", "bar", "\033P\033\\", "baz"}, false, true},
|
||||
|
||||
Reference in new issue
Block a user