From c79685b0bc9686b41abcf295fdbe8f06d9e1771c Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Wed, 3 Aug 2016 19:28:38 -0400
Subject: PLT-3534 Changed special handling of internal links to only occur for
 permalinks and links to channels (#3731)

---
 webapp/utils/text_formatting.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/utils/text_formatting.jsx')

diff --git a/webapp/utils/text_formatting.jsx b/webapp/utils/text_formatting.jsx
index b304fa75a..655b4180e 100644
--- a/webapp/utils/text_formatting.jsx
+++ b/webapp/utils/text_formatting.jsx
@@ -199,7 +199,7 @@ function autolinkAtMentions(text, tokens) {
     return output;
 }
 
-function escapeRegex(text) {
+export function escapeRegex(text) {
     return text.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
 }
 
-- 
cgit v1.2.3-1-g7c22

