diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-30 15:00:57 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-06-30 15:00:57 -0700 |
commit | 71d0a9472f22e34c24bcdd61ce14748f5ca7ae43 (patch) | |
tree | 33e7de4007d73fbbb07472f74659a280414490bc /web/react | |
parent | ae77db2145684e6d6db2b120c248279b55c5e407 (diff) | |
download | chat-71d0a9472f22e34c24bcdd61ce14748f5ca7ae43.tar.gz chat-71d0a9472f22e34c24bcdd61ce14748f5ca7ae43.tar.bz2 chat-71d0a9472f22e34c24bcdd61ce14748f5ca7ae43.zip |
Removed unnecessary loop copying
Diffstat (limited to 'web/react')
-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(); |