initial commits

master
Charles Iliya Krempeaux 2023-12-09 03:25:28 -08:00
parent c273e80fcb
commit 719fbde7c4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ func BytesTolerant(p []byte) (result []byte, rest []byte, ok bool) {
{ {
for i,b := range p { for i,b := range p {
if sp.ByteIsTolerant(p0) || '\r' == p0 || '\n' == p0 { if sp.ByteIsTolerant(b) || '\r' == b || '\n' == b {
return p[:i], p[i:], true return p[:i], p[i:], true
} }
} }