diff --git a/suggestions/templates/suggestions/problemsuggestion_form.html b/suggestions/templates/suggestions/problemsuggestion_form.html index 760f5595..3de1390e 100644 --- a/suggestions/templates/suggestions/problemsuggestion_form.html +++ b/suggestions/templates/suggestions/problemsuggestion_form.html @@ -235,7 +235,8 @@

Submission requirements

} function checkQuadrupleBackslashes(s) { - return !s.includes("\\\\\\\\"); + const pattern = /\\\\\s*\\\\/; + return !pattern.test(s); } function checkAdjacentDisplayMath(s) {