summaryrefslogtreecommitdiffstats
path: root/model
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-06-19 08:30:16 -0400
committerJoramWilander <jwawilander@gmail.com>2015-06-19 08:30:16 -0400
commit4835187a0557047d8787727862cc9675cfc6df8e (patch)
tree92c82cd57761c9454ee2e644ec544e1c667968c2 /model
parentd6ab5bb1c264826af70533968c605cc1565bed4c (diff)
downloadchat-4835187a0557047d8787727862cc9675cfc6df8e.tar.gz
chat-4835187a0557047d8787727862cc9675cfc6df8e.tar.bz2
chat-4835187a0557047d8787727862cc9675cfc6df8e.zip
added slashes to split map
Diffstat (limited to 'model')
-rw-r--r--model/utils.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/model/utils.go b/model/utils.go
index 9f1788699..262bda319 100644
--- a/model/utils.go
+++ b/model/utils.go
@@ -320,4 +320,4 @@ func ClearMentionTags(post string) string {
var UrlRegex = regexp.MustCompile(`^((?:[a-z]+:\/\/)?(?:(?:[a-z0-9\-]+\.)+(?:[a-z]{2}|aero|arpa|biz|com|coop|edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel|local|internal))(:[0-9]{1,5})?(?:\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(?:\?[a-z0-9+_~\-\.%=&amp;]*)?)?(?:#[a-zA-Z0-9!$&'()*+.=-_~:@/?]*)?)(?:\s+|$)$`)
var PartialUrlRegex = regexp.MustCompile(`/api/v1/files/(get|get_image)/([A-Za-z0-9]{26})/([A-Za-z0-9]{26})/(([A-Za-z0-9]+/)?.+\.[A-Za-z0-9]{3,})`)
-var SplitRunes = map[rune]bool{',': true, ' ': true, '.': true, '!': true, '?': true, ':': true, ';': true, '\n': true, '<': true, '>': true, '(': true, ')': true, '{': true, '}': true, '[': true, ']': true, '+': true}
+var SplitRunes = map[rune]bool{',': true, ' ': true, '.': true, '!': true, '?': true, ':': true, ';': true, '\n': true, '<': true, '>': true, '(': true, ')': true, '{': true, '}': true, '[': true, ']': true, '+': true, '/': true, '\\': true}