diff options
author | rsiddharth <s@ricketyspace.net> | 2020-09-06 22:06:02 -0400 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2020-09-06 22:06:02 -0400 |
commit | d17694275a0b0051a8e763b6867767b4986bfd7d (patch) | |
tree | 79dff42fa34f92848d12f3a9511d7b082dc78614 /lib/str.go | |
parent | 6edba5b98e7eba30e5dd3af2bf997e6c42719fde (diff) |
lib: update isAlpha
* lib/str.go (isAlpha): Add common punctuation.
Diffstat (limited to 'lib/str.go')
-rw-r--r-- | lib/str.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 } |