refactor(detect): create readUntilSafeBoundary + add tests (#1676)

This commit is contained in:
Richard Gomez authored and GitHub committed 2024-12-28 15:14:49 -06:00
1 parent dbe3746455
commit 4c3da6ebb7
5 files changed
+190 -62

No files matched your search

+4
View File
@@ -190,3 +190,7 @@ func containsDigit(s string) bool {
}
return false
}
func isWhitespace(ch byte) bool {
return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r'
}