Explorar el Código

Changed \s to [\r\n] instead since \s and . may not be disjoint.

Ben hace 4 años
padre
commit
48cfbd8f39
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/single-file/single-file-core.js

+ 1 - 1
lib/single-file/single-file-core.js

@@ -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 {