File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 2
2
==================
3
3
4
4
* Backports prototype pollution fix from 5.x branch.
5
+ * Backports correct decimal point regex from 5.x branch.
5
6
6
7
[ 4.2.3 / 2020-01-28] ( https://github.com/jakubpawlowicz/clean-css/compare/v4.2.2...v4.2.3 )
7
8
==================
Original file line number Diff line number Diff line change @@ -606,7 +606,7 @@ function buildPrecisionOptions(roundingPrecision) {
606
606
607
607
if ( optimizable . length > 0 ) {
608
608
precisionOptions . enabled = true ;
609
- precisionOptions . decimalPointMatcher = new RegExp ( '(\\d)\\.($|' + optimizable . join ( '|' ) + ')($|\W)' , 'g' ) ;
609
+ precisionOptions . decimalPointMatcher = new RegExp ( '(\\d)\\.($|' + optimizable . join ( '|' ) + ')($|\\ W)' , 'g' ) ;
610
610
precisionOptions . zeroMatcher = new RegExp ( '(\\d*)(\\.\\d+)(' + optimizable . join ( '|' ) + ')' , 'g' ) ;
611
611
}
612
612
You can’t perform that action at this time.
0 commit comments