diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/react/utils/utils.jsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index 84bcc284d..08b83d084 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -398,11 +398,7 @@ module.exports.textToJsx = function(text, options) { // Function specific regexes var hashRegex = /^href="#[^"]+"|(#[A-Za-z]+[A-Za-z0-9_]*[A-Za-z0-9])$/g; - var implicitKeywords = []; - var keywordArray = UserStore.getCurrentMentionKeys(); - for (var i = 0; i < keywordArray.length; i++) { - implicitKeywords[i] = keywordArray[i]; - } + var implicitKeywords = UserStore.getCurrentMentionKeys(); var lines = text.split("\n"); var urlMatcher = new LinkifyIt(); |