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 regex allows it through (as it's using current culture with ignore case) but the dictionary doesn't contain an entry that maps to it (as it's using ordinal ignore case), and thus the dictionary lookup throws:
Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key 'i' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Humanizer.RomanNumeralExtensions.FromRoman(ReadOnlySpan`1 input) in /_/src/Humanizer/RomanNumeralExtensions.cs:line 95
at Humanizer.RomanNumeralExtensions.FromRoman(String input) in /_/src/Humanizer/RomanNumeralExtensions.cs:line 71
at Program.<Main>$(String[] args)
My guess is the intent was for the regex to be using invariant culture, such that only i and I are permitted, and not ı or İ.
The text was updated successfully, but these errors were encountered:
The regex allows it through (as it's using current culture with ignore case) but the dictionary doesn't contain an entry that maps to it (as it's using ordinal ignore case), and thus the dictionary lookup throws:
results in:
My guess is the intent was for the regex to be using invariant culture, such that only
i
andI
are permitted, and notı
orİ
.The text was updated successfully, but these errors were encountered: