You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know why, but the post remove some parts of the regexp. I'm talking about line #155, and the solutions is to use a diferent selector than (.)* because it also select last quotes. Thanks again
This is the RegExp used when finding @import statements:
/@import\s+(?:url(['"]?(.)['"]?))\s;?/gim;
The problem is that the resulting url sometimes include "double quotes", so then the browser outputs a 404 error.
It works anyway, but the error is uggly.
You can change, for example, the "(.)" part for something like ([^\")]
Thanks
The text was updated successfully, but these errors were encountered: