#230·purifycss

Invalid CSS output if css has ";" symbol in imported URL

Author: capit0lCreated Dec 8, 2020Updated Dec 8, 2020

I have Google Fonts on my CSS:

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;1,500&family=Oswald:wght@400;500&family=Rambla:wght@400;700&display=swap'); But output CSS converts it to:

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;

As the result output CSS file is corrupted and the browser is not processing it.

Need to ignore when ";" symbol is using in the string.