Gildas 7 lat temu
rodzic
commit
6764298263
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      lib/single-file/uglifycss.js

+ 1 - 1
lib/single-file/uglifycss.js

@@ -648,7 +648,7 @@ this.uglifycss = this.uglifycss || (() => {
 		// put the space back in some cases, to support stuff like
 		// @media screen and (-webkit-min-device-pixel-ratio:0){
 		content = content.replace(/\band\(/gi, "and (");
-		content = content.replace(/\bnot\(/gi, "not (");
+		content = content.replace(/([^:])not\(/gi, "$1not (");
 
 		// remove the spaces after the things that should not have spaces after them.
 		content = content.replace(/([!{}:;>+([,])\s+/g, "$1");