}
function precisionMinifier(_, value, precisionOptions) {
- if (precisionOptions.value === -1 || value.indexOf('.') === -1)
+ if (precisionOptions.value === -1 || isNaN(precisionOptions.value) || value.indexOf('.') === -1)
return value;
return value
precision.value = options.roundingPrecision === undefined ?
DEFAULT_ROUNDING_PRECISION :
parseInt(options.roundingPrecision);
+
+ if (isNaN(precision.value))
+ return precision;
+
precision.multiplier = Math.pow(10, precision.value);
precision.regexp = new RegExp('(\\d*\\.\\d{' + (precision.value + 1) + ',})px', 'g');