summaryrefslogtreecommitdiffstats
path: root/webapp/utils/utils.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-09-04 05:48:17 -0400
committerGeorge Goldberg <george@gberg.me>2017-09-04 10:48:17 +0100
commit670bfbf62686ebe9f2ab332733d851a62b6950b0 (patch)
treea2684d469c3a08e9facb8870d2ff1667cc324f24 /webapp/utils/utils.jsx
parent8391ef62886bccba02cf1fd7a87bee75bd521366 (diff)
downloadchat-670bfbf62686ebe9f2ab332733d851a62b6950b0.tar.gz
chat-670bfbf62686ebe9f2ab332733d851a62b6950b0.tar.bz2
chat-670bfbf62686ebe9f2ab332733d851a62b6950b0.zip
PLT-7518 Added unit tests for channel linking (#7352)
* PLT-7518 Added unit tests for channel linking * Removed unused escaping function
Diffstat (limited to 'webapp/utils/utils.jsx')
-rw-r--r--webapp/utils/utils.jsx4
1 files changed, 0 insertions, 4 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index b99f7b967..aa98a9872 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -242,10 +242,6 @@ export function extractFirstLink(text) {
return '';
}
-export function escapeRegExp(string) {
- return string.replace(/([.*+?^=!:${}()|[\]/\\])/g, '\\$1');
-}
-
// Taken from http://stackoverflow.com/questions/1068834/object-comparison-in-javascript and modified slightly
export function areObjectsEqual(x, y) {
let p;