IbanNet.Extensions.IsAlphaNumeric is written the following way
/// <summary>
/// Returns true if char is 0-9, a-z or A-Z and false otherwise.
/// </summary>
public static bool IsAlphaNumeric(this char ch)
{
ch |= ' ';
return IsInRange(ch, '0', '9') || IsInRange(ch, 'a', 'z');
}
As you can see, It is missing the following condition (|| InRange(ch, 'A', 'Z');), which will lead to an unexpected behavior.
I wonder how come that it has not been discovered yet.
Hi,
Thank you for the Library!
IbanNet.Extensions.IsAlphaNumeric is written the following way
As you can see, It is missing the following condition (|| InRange(ch, 'A', 'Z');), which will lead to an unexpected behavior. I wonder how come that it has not been discovered yet.
Please, fix it.
Thank you.