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

Fail to parse selectors starting with double hyphen #2543

Open
ManhNV103 opened this issue Nov 9, 2021 · 1 comment
Open

Fail to parse selectors starting with double hyphen #2543

ManhNV103 opened this issue Nov 9, 2021 · 1 comment

Comments

@ManhNV103
Copy link

ManhNV103 commented Nov 9, 2021

Hi, I got this error when using the find() function with className starting with double hyphen (--) - shortened BEM syntax

Screen Shot 2021-11-09 at 1 42 01 pm

And the error I got is
Screen Shot 2021-11-09 at 1 43 10 pm

I saw from this ticket #1339 that this issue has been fixed, but it does not seem to be the case because multiple other people also face the same issue.

I use Enzyme with TypeScript:

  • enzyme: ^3.11.0
  • @types/enzyme: ^3.10.9
    The rst-selector-parser version as found in the enzyme package is ^2.2.3,

Thank you.

@ljharb
Copy link
Member

ljharb commented Nov 9, 2021

It's fixed, but unreleased in rst-selector-parser: see how there's no release tags on aweary/rst-selector-parser@d4bdc63.

cc @aweary any chance we could get a release of rst-selector-parser? (if you npm owner add me, i can publish it myself - i have no idea how semantic-release works so i don't want to monkey with that)

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

No branches or pull requests

2 participants