Skip to content

Align with native Unicode property escapes #225

Open
@mathiasbynens

Description

@mathiasbynens

Other than the set of supported properties, there are some key differences between XRegExp’s handling of \p{…} and the way they work in native JS.

  • Native \p{…} doesn’t implement loose matching; only strict, case-sensitive matches for canonical property names and values (or their aliases) are accepted
  • In native \p{…}, Blocks are not supported
  • Native \p{…} doesn’t support for the In prefix or any other prefix (although since XRegExp only does this for Blocks, dropping Block support already resolves this)
  • Native \p{…} supports Script_Extensions which is generally more useful than Script

Technically these are all breaking changes, but IMHO we should consider aligning with native property escapes.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions