summaryrefslogtreecommitdiffstats
path: root/lib/str.go
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2020-09-06 22:06:02 -0400
committerrsiddharth <s@ricketyspace.net>2020-09-06 22:06:02 -0400
commitd17694275a0b0051a8e763b6867767b4986bfd7d (patch)
tree79dff42fa34f92848d12f3a9511d7b082dc78614 /lib/str.go
parent6edba5b98e7eba30e5dd3af2bf997e6c42719fde (diff)
lib: update isAlpha
* lib/str.go (isAlpha): Add common punctuation.
Diffstat (limited to 'lib/str.go')
-rw-r--r--lib/str.go6
1 files changed, 6 insertions, 0 deletions
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
}