Explorar o código

remove empty comments

Former-commit-id: f60c18f4dc69b725eec687099683e8b5e673b36d
Gildas %!s(int64=5) %!d(string=hai) anos
pai
achega
2bcbf2de04
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

@@ -2031,7 +2031,7 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 		}
 
 		static removeCssComments(stylesheetContent) {
-			return stylesheetContent.replace(/\/\*(.|\s)+?\*\//g, "");
+			return stylesheetContent.replace(/\/\*(.|\s)*?\*\//g, "");
 		}
 
 		static wrapMediaQuery(stylesheetContent, mediaQuery) {