|
|
@@ -385,7 +385,7 @@ this.singlefile.lib.vendor.cssMinifier = this.singlefile.lib.vendor.cssMinifier
|
|
|
const REGEXP_RESTORE_SPACE3 = /\bor\(/gi;
|
|
|
const REGEXP_REMOVE_SPACES3 = /([!{}:;>+([,])\s+/g;
|
|
|
const REGEXP_REMOVE_SEMI_COLUMNS = /;+\}/g;
|
|
|
- const REGEXP_REPLACE_ZERO = /(^|[^.0-9\\])(?:0?\.)?0(?:ex|ch|r?em|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|g?rad|turn|ms|k?Hz|dpi|dpcm|dppx|%)(?![a-z0-9])/gi;
|
|
|
+ // const REGEXP_REPLACE_ZERO = /(^|[^.0-9\\])(?:0?\.)?0(?:ex|ch|r?em|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|g?rad|turn|ms|k?Hz|dpi|dpcm|dppx|%)(?![a-z0-9])/gi;
|
|
|
const REGEXP_REPLACE_ZERO_DOT = /([0-9])\.0(ex|ch|r?em|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|g?rad|turn|m?s|k?Hz|dpi|dpcm|dppx|%| |;)/gi;
|
|
|
const REGEXP_REPLACE_4_ZEROS = /:0 0 0 0(;|\})/g;
|
|
|
const REGEXP_REPLACE_3_ZEROS = /:0 0 0(;|\})/g;
|
|
|
@@ -642,7 +642,7 @@ this.singlefile.lib.vendor.cssMinifier = this.singlefile.lib.vendor.cssMinifier
|
|
|
content = content.replace(REGEXP_REMOVE_SEMI_COLUMNS, "}");
|
|
|
|
|
|
// replace 0(px,em,%) with 0.
|
|
|
- content = content.replace(REGEXP_REPLACE_ZERO, "$10");
|
|
|
+ // content = content.replace(REGEXP_REPLACE_ZERO, "$10");
|
|
|
|
|
|
// Replace x.0(px,em,%) with x(px,em,%).
|
|
|
content = content.replace(REGEXP_REPLACE_ZERO_DOT, "$1$2");
|