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.
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.\p{…}doesn’t implement loose matching; only strict, case-sensitive matches for canonical property names and values (or their aliases) are accepted\p{…},Blocks are not supported\p{…}doesn’t support for theInprefix or any other prefix (although since XRegExp only does this forBlocks, droppingBlocksupport already resolves this)\p{…}supportsScript_Extensionswhich is generally more useful thanScriptTechnically these are all breaking changes, but IMHO we should consider aligning with native property escapes.