Jelajahi Sumber

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

Ben 4 tahun lalu
induk
melakukan
48cfbd8f39
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 {