-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5654786
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arysin Do we know the changes that are needed for JDK>=19?
Can you document it here? #9854
5654786
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general everywhere where there is \b regular expression and non-ASCII characters you need to use Pattern.UNICODE_CHARACTER_CLASS or (?U) in the regex.
Ideally for the rules this would be fixed in common code, but it looks like @danielnaber hit some issues with that last year.
For [en] it was just one rule that failed, so I've added (?U) to make the tests pass.
For Ukrainian I had to adjust sentence and work tokenizers.
Unfortunately I don't have the knowledge of other languages that fail so it's hard for me to work on a common fix.