fixed IsWhitespace function consideres tabs as whitespace
This commit is contained in:
parent
19e0a61345
commit
1bb8ab5e9b
@ -12,8 +12,12 @@ func IsSpace(rn rune) bool {
|
|||||||
return rn == ' '
|
return rn == ' '
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func IsTab(rn rune) bool {
|
||||||
|
return rn == '\t'
|
||||||
|
}
|
||||||
|
|
||||||
func IsWhitespace(rn rune) bool {
|
func IsWhitespace(rn rune) bool {
|
||||||
return IsSpace(rn) || IsNewLine(rn)
|
return IsSpace(rn) || IsTab(rn) || IsNewLine(rn)
|
||||||
}
|
}
|
||||||
|
|
||||||
func And(f ...RuneFunc) RuneFunc {
|
func And(f ...RuneFunc) RuneFunc {
|
||||||
|
Loading…
Reference in New Issue
Block a user