Explorar o código

fixed CSS comments removal

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
70651bc840
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

@@ -1047,7 +1047,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 			let start, end;
 			do {
 				start = stylesheetContent.indexOf("/*");
-				end = stylesheetContent.indexOf("*/", start);
+				end = stylesheetContent.indexOf("*/", start + 2);
 				if (start != -1 && end != -1) {
 					stylesheetContent = stylesheetContent.substring(0, start) + stylesheetContent.substr(end + 2);
 				}