Skip to content

Commit

Permalink
! Fixed calc() recursive pattern: it was trying to match against the …
Browse files Browse the repository at this point in the history
…whole pattern, instead of the second group of brackets. Also simplified the rest of the pattern. (Class-CSS.php)
  • Loading branch information
Nao committed May 13, 2019
1 parent 294d044 commit a51158f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/app/Class-CSS.php
Expand Up @@ -1685,8 +1685,8 @@ function process(&$css)
'transition(?:-[a-z-]+)?:([^\n;]*)', // Animated transitions (we need to fix 'transform' values, if any.)
'display:\h*(flex|inline-flex)\b', // Final flexbox model declarations
'\b(min|max)-resolution:\h*([\d.]+)(dppx|dpi)', // Useful for responsive design
'\brect\h*\(([^)]+)\)', // rect() function, needs commas except in IE 6/7
'\bcalc\h*\(((?>[^(]|\((?!\))|(?R))+?)\)', // calc() function
'\brect\h*\(([^)]+)\)', // rect() function, needs commas except in IE 6/7. Useless..?
'\bcalc\h*(\((?>[^()]|(?2))*\))', // calc() function, recursive

];
foreach ($values as $val)
Expand Down

0 comments on commit a51158f

Please sign in to comment.