From 0f2de4863b9b35289f0e37ff8ae0d52a5bc4bafc Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Tue, 31 Jan 2017 10:45:04 +0800 Subject: [PATCH] Make Eslint happy. --- app/assets/javascripts/pretty-text/censored-words.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/pretty-text/censored-words.js.es6 b/app/assets/javascripts/pretty-text/censored-words.js.es6 index 9723261833c..48e351cc17f 100644 --- a/app/assets/javascripts/pretty-text/censored-words.js.es6 +++ b/app/assets/javascripts/pretty-text/censored-words.js.es6 @@ -1,5 +1,5 @@ function escapeRegexp(text) { - return text.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&') + return text.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'); } export function censor(text, censoredWords, censoredPattern) {