Skip to content

better regex for property names #22

Description

@xclayl

The code has

[^\w-.]

but apparantly this is better
[^[\w\-.]

I get a warning in https://regex101.com/ that the RegExp is trying to match a range, when you want to match the '-' char.

Activity

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

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