diff --git a/runefunc.go b/runefunc.go index cacf4de..a3afba0 100644 --- a/runefunc.go +++ b/runefunc.go @@ -12,8 +12,12 @@ func IsSpace(rn rune) bool { return rn == ' ' } +func IsTab(rn rune) bool { + return rn == '\t' +} + func IsWhitespace(rn rune) bool { - return IsSpace(rn) || IsNewLine(rn) + return IsSpace(rn) || IsTab(rn) || IsNewLine(rn) } func And(f ...RuneFunc) RuneFunc {