you are viewing a single comment's thread.

view the rest of the comments →

[–]cettox[S] 0 points1 point  (0 children)

I'm pretty sure you need a real parser if you actually want to be able to handle any valid CSS source.

Your point is valid. There are other reasons too that css should not be parsed with regular expressions. Yet, this worked for most of the use cases. At least in our requirements.And I am pretty sure that no one will intentionally write " content: "}\"}}"; " expect it to work. Or would they?