Skip to content

Token style values enter a infinite loop instead of throwing an error #150

@coxrichuk

Description

@coxrichuk
  • Operating System (or Browser): MacOS
  • Node Version: v20.11.1
  • postcss-values-parser Version: 6.0.2

How Do We Reproduce?

When parsing [token.some:fantastic|token] with the below config postcss-values-parser enters an infinite loop

const parsed = cssValuesParser("[token.some:fantastic|token]", { ignoreUnknownWords: true, variables: { prefixes: ['\\$', '--'] } });

Expected Behavior

Should throw an error

Actual Behavior

Enters an infinite loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions