diff --git a/app/assets/javascripts/pretty-text/engines/discourse-markdown/text-post-process.js.es6 b/app/assets/javascripts/pretty-text/engines/discourse-markdown/text-post-process.js.es6 index 020545e285..84a0d5cd70 100644 --- a/app/assets/javascripts/pretty-text/engines/discourse-markdown/text-post-process.js.es6 +++ b/app/assets/javascripts/pretty-text/engines/discourse-markdown/text-post-process.js.es6 @@ -87,7 +87,7 @@ function textPostProcess(content, state, ruler) { const matcher = ruler.getMatcher(); - while (match = matcher.exec(content)) { + while ((match = matcher.exec(content))) { // something is wrong if (match.index < pos) break;