diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-06 09:46:36 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-06 10:09:51 -0500 |
commit | cd3113118823f89194f0edf758aae0d9923436ea (patch) | |
tree | e0f35d3814c5985f17414fdbcfe4cdc254e1f553 /model/utils.go | |
parent | ff38c402cb793bbea8881f9cdc8123d0959e6e08 (diff) | |
download | chat-cd3113118823f89194f0edf758aae0d9923436ea.tar.gz chat-cd3113118823f89194f0edf758aae0d9923436ea.tar.bz2 chat-cd3113118823f89194f0edf758aae0d9923436ea.zip |
Fixing searching for quotations
Diffstat (limited to 'model/utils.go')
-rw-r--r-- | model/utils.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/model/utils.go b/model/utils.go index 681ade870..75c982eec 100644 --- a/model/utils.go +++ b/model/utils.go @@ -242,8 +242,8 @@ func Etag(parts ...interface{}) string { } var validHashtag = regexp.MustCompile(`^(#[A-Za-z]+[A-Za-z0-9_\-]*[A-Za-z0-9])$`) -var puncStart = regexp.MustCompile(`^[.,()&$!\[\]{}"':;\\]+`) -var puncEnd = regexp.MustCompile(`[.,()&$#!\[\]{}"';\\]+$`) +var puncStart = regexp.MustCompile(`^[.,()&$!\[\]{}':;\\]+`) +var puncEnd = regexp.MustCompile(`[.,()&$#!\[\]{}';\\]+$`) func ParseHashtags(text string) (string, string) { words := strings.Fields(text) |