Allow uppercase hex digits.
This commit is contained in:
parent
04b7a3afd0
commit
86e865edfe
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.2)
|
cmake_minimum_required (VERSION 3.2)
|
||||||
project(identiconpp
|
project(identiconpp
|
||||||
VERSION 0.3.6
|
VERSION 0.3.7
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,10 @@ bool Identiconpp::not_hex(const char c)
|
||||||
{ // a-f
|
{ // a-f
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (c >= 0x41 && c <= 0x46)
|
||||||
|
{ // A-F
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (c >= 0x30 && c <= 0x39)
|
if (c >= 0x30 && c <= 0x39)
|
||||||
{ // 0-9
|
{ // 0-9
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue