summaryrefslogtreecommitdiffstats
path: root/model/utils.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-11-06 09:46:36 -0500
committerChristopher Speller <crspeller@gmail.com>2015-11-06 10:09:51 -0500
commitcd3113118823f89194f0edf758aae0d9923436ea (patch)
treee0f35d3814c5985f17414fdbcfe4cdc254e1f553 /model/utils.go
parentff38c402cb793bbea8881f9cdc8123d0959e6e08 (diff)
downloadchat-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.go4
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)