summaryrefslogtreecommitdiff
path: root/src/util/regexp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/regexp.cpp')
-rw-r--r--src/util/regexp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/regexp.cpp b/src/util/regexp.cpp
index 62cf2b647..441af0308 100644
--- a/src/util/regexp.cpp
+++ b/src/util/regexp.cpp
@@ -41,8 +41,8 @@ void String::toInternal(const std::string &s) {
case '\\': {d_str.push_back( convertCharToUnsignedInt('\\') );i++;} break;
case 'x': {
if(i + 2 < s.size()) {
- if((isdigit(s[i+1]) || (s[i+1] >= 'a' && s[i+1] >= 'f') || (s[i+1] >= 'A' && s[i+1] >= 'F')) &&
- (isdigit(s[i+2]) || (s[i+2] >= 'a' && s[i+2] >= 'f') || (s[i+2] >= 'A' && s[i+2] >= 'F'))) {
+ if((isdigit(s[i+1]) || (s[i+1] >= 'a' && s[i+1] <= 'f') || (s[i+1] >= 'A' && s[i+1] <= 'F')) &&
+ (isdigit(s[i+2]) || (s[i+2] >= 'a' && s[i+2] <= 'f') || (s[i+2] >= 'A' && s[i+2] <= 'F'))) {
d_str.push_back( convertCharToUnsignedInt( hexToDec(s[i+1]) * 16 + hexToDec(s[i+2]) ) );
i += 3;
} else {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback