From fede1ae96fd5e28eedca0f2a06c8c16491c82b39 Mon Sep 17 00:00:00 2001 From: hmhealey Date: Thu, 3 Sep 2015 11:54:03 -0400 Subject: MM-1852 Fixed hashtag regex so that it only looks for hashtags starting with a # --- web/react/utils/utils.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web') 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(); -- cgit v1.2.3-1-g7c22