Skip to content

Fail to parse selectors starting with double hyphen #2543

Description

@ManhNV103

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions