summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-09-23 10:22:35 -0400
committerGitHub <noreply@github.com>2016-09-23 10:22:35 -0400
commit214f9c13a261064733c23d762fa521444fbd7a9c (patch)
treee02c19d673d05b7de6d2e2e36698f61fabee836e /webapp/utils
parent90f113dcda43a6455e431029a87e35ab8c537a73 (diff)
downloadchat-214f9c13a261064733c23d762fa521444fbd7a9c.tar.gz
chat-214f9c13a261064733c23d762fa521444fbd7a9c.tar.bz2
chat-214f9c13a261064733c23d762fa521444fbd7a9c.zip
Updating client dependancies (#4083)
Diffstat (limited to 'webapp/utils')
-rw-r--r--webapp/utils/text_formatting.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/utils/text_formatting.jsx b/webapp/utils/text_formatting.jsx
index 23e286b45..3b96a1b42 100644
--- a/webapp/utils/text_formatting.jsx
+++ b/webapp/utils/text_formatting.jsx
@@ -117,7 +117,7 @@ export function sanitizeHtml(text) {
// Convert emails into tokens
function autolinkEmails(text, tokens) {
- function replaceEmailWithToken(autolinker, match) {
+ function replaceEmailWithToken(match) {
const linkText = match.getMatchedText();
let url = linkText;
@@ -141,7 +141,7 @@ function autolinkEmails(text, tokens) {
urls: false,
email: true,
phone: false,
- twitter: false,
+ mention: false,
hashtag: false,
replaceFn: replaceEmailWithToken
});