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) {