Skip to content

fix(ogenregex): Support \p{...} and \P{...} format for Go regexp #1475

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

repeatedly
Copy link

Fix #1466

Go's regexp supports \p{...} and \P{...}, so ogenregex.Convert function should keep these formats in regexp pattern.
This patch doesn't check actual properties because supported properties depend on Go version.
e.g. Go v1.25 supports more properties: golang/go#70780

@repeatedly repeatedly force-pushed the ogenregex-unicode-properties branch 2 times, most recently from 4a5705f to b5c900b Compare June 9, 2025 00:26
@repeatedly repeatedly force-pushed the ogenregex-unicode-properties branch from b5c900b to 5adf7dc Compare June 10, 2025 06:57
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

Successfully merging this pull request may close these issues.

bug: ogenregex can't handle \p used ECMA-262 regexp pattern
1 participant