New issue
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
Stylus preprocessor has problems with "?" quantifier in regexp #2841
Comments
maybe you can use @css as a workaround. |
Okay, checked by creating new style and by copy and paste one-few sections. Regex issues disappeared despite styles were exactly the same (compared with Notepad++ compare plugin) in the end (when I replaced meta-data in both styles to default to exclude issues with it). I don't know why it happens, some underhood issues? I had also few parsing issues, but resolved by putting them into @css {} workaround as you said. Almost all of them were related to semicolons in attributes in #2842. |
I found another issue related with preprocessor related with attributes and comma. Please see my issue reported there. Escaping with |
Hello,
I am using Stylus addon for Firefox to implement css for style (for Chrome issue appears too).
When I changed preprocessor to
stylus
I got issues with my regex. Author of same-named addon confirmed that it is related with preprocessor.To reproduce:
Stylus has issues with
?
quantifiers. Create any userCSS style on addon. Use regex with?
quantifier, e.g.:@-moz-document regexp("https:\/\/(www\.)?((((console.)?)developers)|(explorer\.apis))\.google\.(com|([a-z]{2}))(\.[a-z]{2})?\/.*") {/*...*/}
Current behavior:
Regex not working, unable to save style.
Expected behavior:
On regex101 no errors found and the same should be with Stylus.
Environment information:
stylus
version: 0.60.0 (not sure of version used in addon).nodejs
version: n/aThe text was updated successfully, but these errors were encountered: