madskristensen / BundlerMinifier

Visual Studio extension
Other
616 stars 173 forks source link

CSS minification fails if there are Parentheses in the URL somewhere in an input CSS file. #496

Open mmsaffari opened 4 years ago

mmsaffari commented 4 years ago

Installed product versions

Description

When minifying CSS, if there are any parentheses in the URL of a file, e.g. a font, the minifier crashes with errors like this:

Expected expression, found ''' Unterminated string: '); Unterminated string: '), / IE6-8 / Unterminated string: '), / FF39+,Chrome36+, Opera24+/ Unterminated string: '), / FF3.6+, IE9, Chrome6+, Saf5.1+/ Unterminated string: ');

Steps to recreate

try to minify the attached CSS file. fontiran.zip

Current behavior

Does not minify a valid CSS.

Expected behavior

The parentheses in the URL should cause no problems.