Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change \w, \d, \s to be Unicode based by default #4

Closed
slevithan opened this issue Nov 20, 2024 · 1 comment
Closed

Change \w, \d, \s to be Unicode based by default #4

slevithan opened this issue Nov 20, 2024 · 1 comment

Comments

@slevithan
Copy link
Owner

slevithan commented Nov 20, 2024

Currently, Oniguruma-To-ES treats \w, \d, and \s as ASCII-only, based on earlier versions of Oniguruma/Onigmo and testers like Rubular.com and RegexBuddy that are apparently running in non-Unicode mode. I've verified that Oniguruma 6.9.8 via vscode-oniguruma 2.0.1 treats these character sets as Unicode-based by default.

Oniguruma's Unicode-based interpretation of \s follows binary property \p{White_Space}, unlike JS's Unicode-based interpretation that includes \uFEFF and excludes \x85.

@slevithan
Copy link
Owner Author

Closed by e0bae15, db1d8bb, f5bca8d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant