Fixed infinite loop caused by regex backtracking
@@ -2293,7 +2293,7 @@ function matchImport(stylesheetContent) {
function removeCssComments(stylesheetContent) {
try {
- return stylesheetContent.replace(/\/\*(.|\s)*?\*\//g, "");
+ return stylesheetContent.replace(/\/\*(.|[\r\n])*?\*\//g, "");
} catch (error) {
let start, end;
do {