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
{{ message }}
Repository navigation
A capital after a supplementary-plane digit (e.g. U+1D7D1 𝟑) gets no camelCase bonus: #132 checks only the high surrogate #133
#132 gave a capital after a digit the camelCase bonus. The digit check is prevDigit = char.IsDigit(strChar); (FuzzySearch/Fuzzy.cs:333).
strChar is only the first UTF-16 unit. For a supplementary-plane decimal digit (category Nd, for example U+1D7D1 MATHEMATICAL BOLD DIGIT THREE), that unit is a high surrogate, so IsDigit is false and the next capital gets no bonus.
This is the same gap #110 fixed for supplementary-plane capitals. It contradicts the comment around line 226, which says case and kind are read from the whole code point, and the camelCaseMatchBonus doc ("an uppercase letter after a lowercase letter or a digit").
Priority: Low. Supplementary-plane decimal digits are rare in identifiers. It is still a plain inconsistency with the documented camelCase rule and with the code-point comment around line 226.
Area / suggested assignment: The prevDigit = char.IsDigit(strChar) check in FuzzySearch/Fuzzy.cs:333.
Next step: Classify the whole code point: Rune.IsDigit on NETCOREAPP3_0_OR_GREATER, and CharUnicodeInfo.GetUnicodeCategory(s, i) == DecimalDigitNumber elsewhere. Ideally fold it into the GetLetterCase helper so letter case and digit checks can't drift apart. Add the U+1D7D1 test next to the Give a capital after a digit the camelCase bonus [patch] #132 tests.
Activity
matt-edmondson commentedon Nov 4, 2026
Triage
prevDigit = char.IsDigit(strChar)check inFuzzySearch/Fuzzy.cs:333.Rune.IsDigitonNETCOREAPP3_0_OR_GREATER, andCharUnicodeInfo.GetUnicodeCategory(s, i) == DecimalDigitNumberelsewhere. Ideally fold it into theGetLetterCasehelper so letter case and digit checks can't drift apart. Add theU+1D7D1test next to the Give a capital after a digit the camelCase bonus [patch] #132 tests.Generated by Claude Code