You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The unicode spec on case folding specifies that ß and ẞ (its uppercase version) should equal to ss when doing a full case folding, as shown by the Python implementation:
>>> 'ẞ'.casefold()
'ss'
>>> 'ß'.casefold()
'ss'
However, when trying to compare those two characters to their casefolded version using caseFold.equals, this happens:
Hey, thanks for the feedback! I am in the middle of converting this to make better use of ES6 modules, and updating the string comparison was also on my list.
If you have an improvement for it, feel free to submit a PR.
I used Unicode 14.0.0 because 15.0.0 is still in Draft for this year until it's release on September. It is in ECMAScript Modules (.mjs) format but can easily be converted to CommonJS (.js/.cjs) format. Also requesting for comments on possible improvements. Thank you.
The unicode spec on case folding specifies that
ß
andẞ
(its uppercase version) should equal toss
when doing a full case folding, as shown by the Python implementation:However, when trying to compare those two characters to their casefolded version using
caseFold.equals
, this happens:The text was updated successfully, but these errors were encountered: