minify icon indicating copy to clipboard operation
minify copied to clipboard

Nth-child with spaces inside gets broken

Open roby65 opened this issue 7 months ago • 0 comments

We have this code in our css:

nth-child(1 of :not([class*=hero]))

This gets minified to:

nth-child(1of :not([class*=hero]))

Breaking it.

The code that breaks this is in CSS.PHP line 757:

$content = preg_replace('/:(' . implode('|', $pseudos) . ')\(\s*([+-]?)\s*(.+?)\s*([+-]?)\s*(.*?)\s*\)/', ':$1($2$3$4$5)', $content);

roby65 avatar Jul 10 '24 14:07 roby65