-
Notifications
You must be signed in to change notification settings - Fork 360
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
Fix bug: dashes in theme names could break SCSS build. #4265
Fix bug: dashes in theme names could break SCSS build. #4265
Conversation
Shouldn't the dash come first in the character class or be escaped? |
Thanks, @djones-scu-edu. For whatever reason, it works correctly without escaping the dash (maybe a lone unescaped dash is legal following a generic class like |
I always forget in which RE variations the dash holds no special meaning in a character class if it is the first or last character in the class. In PHP, it appears to be either. |
I think that another character we may want to add is underscore. |
The |
Okay, good. I forgot that! |
Me too; I had to look it up. But it explains why this wasn't caught sooner -- the |
Yes! It was the underscores in the “local_theme_example” that had me thinking to try those. Stumbled onto the answer, in other words. |
@dltj reported that SCSS did not compile correctly when extending a theme containing a dash character. This PR fixes the problem. It's possible that an even broader regex would be more appropriate here, but I wanted to keep my fix targeted for starters.