diff options
Diffstat (limited to 'src/Uri.cpp')
-rw-r--r-- | src/Uri.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Uri.cpp b/src/Uri.cpp index 2b15ede..41ea1a4 100644 --- a/src/Uri.cpp +++ b/src/Uri.cpp @@ -240,7 +240,7 @@ namespace { enum class ValidationState { NO_GROUPS_YET, COLON_BUT_NO_GROUPS_YET, - AFTER_COLON_EXPECT_GROUP_OR_IPV4, + AFTER_DOUBLE_COLON, IN_GROUP_NOT_IPV4, IN_GROUP_COULD_BE_IPV4, COLON_AFTER_GROUP, @@ -274,14 +274,14 @@ namespace { return false; } else { doubleColonEncountered = true; - state = ValidationState::AFTER_COLON_EXPECT_GROUP_OR_IPV4; + state = ValidationState::AFTER_DOUBLE_COLON; } } else { return false; } } break; - case ValidationState::AFTER_COLON_EXPECT_GROUP_OR_IPV4: { + case ValidationState::AFTER_DOUBLE_COLON: { if (DIGIT.Contains(c)) { potentialIpv4AddressStart = position; if (++numDigits > 4) { @@ -340,7 +340,7 @@ namespace { return false; } else { doubleColonEncountered = true; - state = ValidationState::AFTER_COLON_EXPECT_GROUP_OR_IPV4; + state = ValidationState::AFTER_DOUBLE_COLON; } } else if (DIGIT.Contains(c)) { potentialIpv4AddressStart = position; |