follow whitespace rule of strings.TrimSpace

This commit is contained in:
kimiwu123
2019-10-31 15:18:01 +08:00
parent 2cbba4e007
commit 3308c3d94e

View File

@@ -32,7 +32,7 @@ const (
var eof = rune(0) var eof = rune(0)
func isWhitespace(ch rune) bool { func isWhitespace(ch rune) bool {
return ch == ' ' || ch == '\t' || ch == '\n' return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' || ch == '\v' || ch == '\f'
} }
func isLetter(ch rune) bool { func isLetter(ch rune) bool {