Skip to content

better regex for property names #22

@xclayl

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.

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