Explorar o código

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

Ben %!s(int64=4) %!d(string=hai) anos
pai
achega
48cfbd8f39
Modificáronse 1 ficheiros con 1 adicións e 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 {