From e79e212912308e3ec20a8d5f8734d09cf0569dad Mon Sep 17 00:00:00 2001 From: Tom <20648924+moT01@users.noreply.github.com> Date: Fri, 23 Apr 2021 15:59:33 -0500 Subject: [PATCH] fix(curriculum): helper function regex s flag causing error (#41910) --- client/src/utils/curriculum-helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/utils/curriculum-helpers.js b/client/src/utils/curriculum-helpers.js index 21027649af..73faf75488 100644 --- a/client/src/utils/curriculum-helpers.js +++ b/client/src/utils/curriculum-helpers.js @@ -1,7 +1,7 @@ import { parse } from '@babel/parser'; import generate from '@babel/generator'; -const removeHtmlComments = str => str.replace(//gs, ''); +const removeHtmlComments = str => str.replace(/|$)/g, ''); const removeCssComments = str => str.replace(/\/\*[\s\S]+?\*\//g, '');