From d17694275a0b0051a8e763b6867767b4986bfd7d Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 6 Sep 2020 22:06:02 -0400 Subject: lib: update isAlpha * lib/str.go (isAlpha): Add common punctuation. --- lib/str.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/str.go') diff --git a/lib/str.go b/lib/str.go index 5ccbd33..1d5fd17 100644 --- a/lib/str.go +++ b/lib/str.go @@ -56,6 +56,12 @@ func isAlpha(c byte) bool { return true case 'a' <= c && c <= 'z': return true + case c == ' ' || c == '.': + return true + case c == ',' || c == '\'': + return true + case c == '"': + return true } return false } -- cgit v1.2.3