Closed samkrishna closed 2 years ago
"π£π²π’πΆπ°" (Greek upper-case)
These are MATHEMATICAL ITALIC CAPITAL
letters, and Unicode intentionally does not provide case folding for them.
You can match the whole block 1D400 ... 1D7FF
, or specific subranges.
Or use simple greek letters, like ΞΞ‘ΞΞ₯Ξ, Ξ²ΟΞ±Ο ΞΏ
@paiv I just ran the tests with your suggestion and of course you're correct.
Thank you for the Unicode lesson. This was a bug report with an incorrect premise and I am closing it now.
Describe the bug Caseless Unicode regexes fail to match Unicode strings with varying cases.
Steps To Reproduce Steps to reproduce the behavior:
Expected behavior
I expect the case-insensitive regexes for matching "π£π²π’πΆπ°" (Greek upper-case) and "π½ππππ" (Greek lower-case) spelling out the Greek equivalent characters of the word "bravo" to match (on lines 49 and 50).
Screenshots N/A
Environment (please fill out the following information)
Additional context
This is related to Apple FB5706701, the Objective-C version of this bug in NSRegularExpression. I have included the original Objective-C test code in commented form in the test case. UnicodeRegexes.zip