summaryrefslogtreecommitdiffstats
path: root/web/react/utils/utils.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-09-03 11:54:03 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-09-03 12:21:13 -0400
commitfede1ae96fd5e28eedca0f2a06c8c16491c82b39 (patch)
tree0c696ede94ac743650c10b14f9ac8285c94a5c6a /web/react/utils/utils.jsx
parentf3d3658ef40239651fa4b415664ab15b69ea6c67 (diff)
downloadchat-fede1ae96fd5e28eedca0f2a06c8c16491c82b39.tar.gz
chat-fede1ae96fd5e28eedca0f2a06c8c16491c82b39.tar.bz2
chat-fede1ae96fd5e28eedca0f2a06c8c16491c82b39.zip
MM-1852 Fixed hashtag regex so that it only looks for hashtags starting with a #
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r--web/react/utils/utils.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index dc229bd36..ea42256aa 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -457,7 +457,7 @@ export function textToJsx(textin, options) {
var inner = [];
// Function specific regex
- var hashRegex = /^href="#[^']+"|(#[A-Za-z]+[A-Za-z0-9_\-]*[A-Za-z0-9])$/g;
+ var hashRegex = /^href="#[^']+"|(^#[A-Za-z]+[A-Za-z0-9_\-]*[A-Za-z0-9])$/g;
var implicitKeywords = UserStore.getCurrentMentionKeys();