Skip to content

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

Merged
1 commit merged intoogen-go:mainfrom
repeatedly:ogenregex-unicode-properties
Jun 15, 2025
Merged

fix(ogenregex): Support \p{...} and \P{...} format for Go regexp#1475
1 commit merged intoogen-go:mainfrom
repeatedly:ogenregex-unicode-properties

Conversation

@repeatedly
Copy link
Contributor

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
@repeatedly
Copy link
Contributor Author

Fixed commit-lint error and test passed.

@ghost ghost enabled auto-merge June 15, 2025 15:16
@ghost ghost merged commit b7abf35 into ogen-go:main Jun 15, 2025
15 checks passed
@repeatedly repeatedly deleted the ogenregex-unicode-properties branch June 16, 2025 02:55
@repeatedly
Copy link
Contributor Author

Thanks for the merge :)

This pull request was closed.
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