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, '');