summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authornickago <ngonella@calpoly.edu>2015-06-30 11:56:55 -0700
committernickago <ngonella@calpoly.edu>2015-06-30 11:57:57 -0700
commitbcc31b714b19ff3817c96c801028e23ace8cc55b (patch)
tree9ca11d12039146bec180fd5a0c1ac2c4974da5e1 /web/react/utils
parent7a7be75e742603d06927a488b136e1ed4432aac2 (diff)
downloadchat-bcc31b714b19ff3817c96c801028e23ace8cc55b.tar.gz
chat-bcc31b714b19ff3817c96c801028e23ace8cc55b.tar.bz2
chat-bcc31b714b19ff3817c96c801028e23ace8cc55b.zip
Added the ability to have hashtags with dashes in them
Diffstat (limited to 'web/react/utils')
-rw-r--r--web/react/utils/utils.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index d50a044bc..175fc2922 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -395,8 +395,8 @@ module.exports.textToJsx = function(text, options) {
var inner = [];
- // Function specific regexes
- var hashRegex = /^href="#[^"]+"|(#[A-Za-z]+[A-Za-z0-9_]*[A-Za-z0-9])$/g;
+ // Function specific regex
+ var hashRegex = /^href="#[^"]+"|(#[A-Za-z]+[A-Za-z0-9_\-]*[A-Za-z0-9])$/g;
var implicitKeywords = {};
var keywordArray = UserStore.getCurrentMentionKeys();