Skip to content
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

Wrong kebab-case pattern for private members #127

Open
pepa-linha opened this issue Sep 23, 2023 · 1 comment
Open

Wrong kebab-case pattern for private members #127

pepa-linha opened this issue Sep 23, 2023 · 1 comment

Comments

@pepa-linha
Copy link

pepa-linha commented Sep 23, 2023

Hi,

documentation Sass says https://sass-lang.com/documentation/at-rules/use/#private-members

"Sass makes it easy to define a private member by starting its name with either - or _ ."

but this regex ^(-?[a-z][a-z0-9]*)(-[a-z0-9]+)*$ does not support underscore in the beginning, only dash.

I don't take the _ prefix as part of "kebab-case", I don't think it's related.

@kristerkari
Copy link
Contributor

Sorry for the late answer, but there has been discussion about this already before:
#12

If you want it to change, please open a Pull Request with the change, and we can continue discussing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants