summaryrefslogtreecommitdiffstats
path: root/web/react/utils/utils.jsx
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-06-30 19:46:25 -0800
committerCorey Hulen <corey@hulen.com>2015-06-30 19:46:25 -0800
commit75c19380776e9ebf30345a922bd3a0e2df0711f4 (patch)
treec4d2128772fb279b5d2c2641162e6304a98a163a /web/react/utils/utils.jsx
parent1200f764842ec11557b686ca9226b357ff5b0c93 (diff)
parentbcc31b714b19ff3817c96c801028e23ace8cc55b (diff)
downloadchat-75c19380776e9ebf30345a922bd3a0e2df0711f4.tar.gz
chat-75c19380776e9ebf30345a922bd3a0e2df0711f4.tar.bz2
chat-75c19380776e9ebf30345a922bd3a0e2df0711f4.zip
Merge pull request #110 from nickago/MM-1430
MM-1430 Added the ability to have hashtags with dashes in them
Diffstat (limited to 'web/react/utils/utils.jsx')
-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 08b83d084..70a47742f 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 = UserStore.getCurrentMentionKeys();