Skip to content

Wrong kebab-case pattern for private members #127

@pepa-linha

Description

@pepa-linha

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions