fix(curriculum): helper function regex s flag causing error (#41910)

This commit is contained in:
Tom
2021-04-23 15:59:33 -05:00
committed by GitHub
parent 6ae186a8cf
commit e79e212912

View File

@ -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(/<!--[\s\S]*?(-->|$)/g, '');
const removeCssComments = str => str.replace(/\/\*[\s\S]+?\*\//g, '');