소스 검색

fixed CSS comments removal

Gildas 7 년 전
부모
커밋
70651bc840
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
 				}