Closed frankszymanski closed 7 years ago
The spec for the cursor CSS property (https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) has examples where a url is followed by a comma. For example:
.baz { cursor: url(hyper.cur), auto; }
The regex appears to need to be updated to include a comma in the final grouping: url\s*\(\s*(?!["']?data:)(.+?)\)(?=\s+(?!\))|;|}) to url\s*\(\s*(?!["']?data:)(.+?)\)(?=\s+(?!\))|;|}|,)
url\s*\(\s*(?!["']?data:)(.+?)\)(?=\s+(?!\))|;|})
url\s*\(\s*(?!["']?data:)(.+?)\)(?=\s+(?!\))|;|}|,)
Sounds good, could you create a PR with a test, please?
PR Opened.
closed via 79da79d
The spec for the cursor CSS property (https://developer.mozilla.org/en-US/docs/Web/CSS/cursor) has examples where a url is followed by a comma. For example:
The regex appears to need to be updated to include a comma in the final grouping:
url\s*\(\s*(?!["']?data:)(.+?)\)(?=\s+(?!\))|;|})
tourl\s*\(\s*(?!["']?data:)(.+?)\)(?=\s+(?!\))|;|}|,)