We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the css property is the first one in the block, e.g: .test {background-image:url(_____)}
The regular expression will miss it as it is expecting ';' or white space at the beginning.
I fixed it by adding {
var cssPropertyMatcher = /[;\s{]?[a-zA-Z-]+\s_:\s_url(\s_['"]?[^'")\s]+['"]?\s_)[^;}]/g;
The text was updated successfully, but these errors were encountered:
Just to let you know, there is still a corner case where this regex fails, have created a pull request based off @ezraroi to fix this problem here #8
@callumlocke any chance in finally getting this stuff merged?
Sorry, something went wrong.
fixed after a huge delay, sorry
No branches or pull requests
If the css property is the first one in the block, e.g:
.test {background-image:url(_____)}
The regular expression will miss it as it is expecting ';' or white space at the beginning.
I fixed it by adding {
var cssPropertyMatcher = /[;\s{]?[a-zA-Z-]+\s_:\s_url(\s_['"]?[^'")\s]+['"]?\s_)[^;}]/g;
The text was updated successfully, but these errors were encountered: