diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-09-03 11:54:03 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-09-03 12:21:13 -0400 |
commit | fede1ae96fd5e28eedca0f2a06c8c16491c82b39 (patch) | |
tree | 0c696ede94ac743650c10b14f9ac8285c94a5c6a /web | |
parent | f3d3658ef40239651fa4b415664ab15b69ea6c67 (diff) | |
download | chat-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')
-rw-r--r-- | web/react/utils/utils.jsx | 2 |
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(); |