diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-11-17 12:02:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-17 12:02:16 -0500 |
commit | a7987149582a42e0f6d05813bc0f61fcdd6f805c (patch) | |
tree | ec862778a119f86c21943db625839bae31de5bb9 /webapp/utils/text_formatting.jsx | |
parent | b1db1463f6e858b535d291d3f442eaf8a05bc410 (diff) | |
download | chat-a7987149582a42e0f6d05813bc0f61fcdd6f805c.tar.gz chat-a7987149582a42e0f6d05813bc0f61fcdd6f805c.tar.bz2 chat-a7987149582a42e0f6d05813bc0f61fcdd6f805c.zip |
Updating eslint (#4573)
Diffstat (limited to 'webapp/utils/text_formatting.jsx')
-rw-r--r-- | webapp/utils/text_formatting.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/utils/text_formatting.jsx b/webapp/utils/text_formatting.jsx index 5caad05c3..9c2edf954 100644 --- a/webapp/utils/text_formatting.jsx +++ b/webapp/utils/text_formatting.jsx @@ -249,7 +249,7 @@ function autolinkChannelMentions(text, tokens, channelNamesMap, team) { } export function escapeRegex(text) { - return text.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); + return text.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'); } function highlightCurrentMentions(text, tokens, mentionKeys = []) { @@ -386,7 +386,7 @@ function parseSearchTerms(searchTerm) { termString = termString.substring(captured[0].length); // break the text up into words based on how the server splits them in SqlPostStore.SearchPosts and then discard empty terms - terms.push(...captured[0].split(/[ <>+\(\)~@]/).filter((term) => Boolean(term))); + terms.push(...captured[0].split(/[ <>+()~@]/).filter((term) => Boolean(term))); continue; } |