Skip to content

Don’t invert twice on comparison queries#1057

Merged
eggrobin merged 7 commits intounicode-org:mainfrom
eggrobin:doubly-inverted
Mar 12, 2025
Merged

Don’t invert twice on comparison queries#1057
eggrobin merged 7 commits intounicode-org:mainfrom
eggrobin:doubly-inverted

Conversation

@eggrobin
Copy link
Member

@eggrobin eggrobin commented Mar 11, 2025

\p{Uppercase≠@Changes_When_Lowercased@} is currently equal to \p{Uppercase=@Changes_When_Lowercased@} rather than \P{Uppercase=@Changes_When_Lowercased@}, because it is re-inverted before it is returned.

Also added support for null queries and aligned identity queries with the working draft (code point like in @missing lines rather than cp, and LM3 matching), and brought LM3 matching up to date with Unicode 6.0, stripping leading is (see also https://www.unicode.org/reports/tr44/tr44-6.html#UAX44-LM3, the proposed update https://www.unicode.org/reports/tr44/tr44-5.html#UAX44-LM3, UTC-120-A106, and L2/09-248).

@eggrobin eggrobin requested review from macchiati and markusicu March 11, 2025 19:15
@eggrobin eggrobin requested a review from markusicu March 12, 2025 12:02
@eggrobin eggrobin merged commit c60a326 into unicode-org:main Mar 12, 2025
15 of 16 checks passed
@macchiati
Copy link
Member

Looking forward to having this in the JSPs too!

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.

3 participants