summaryrefslogtreecommitdiff
path: root/android/PhoneNumberUtils.cpp
diff options
context:
space:
mode:
authorDaisuke Miyakawa <dmiyakawa@google.com>2009-07-20 18:28:54 -0700
committerDaisuke Miyakawa <dmiyakawa@google.com>2009-07-20 18:28:54 -0700
commitcfdd4a7238fb93f2144f48dd814d786414eb025d (patch)
tree001d791e225bdb920c3f6dab625bc1b4b8eb2f0a /android/PhoneNumberUtils.cpp
parentc30779b9aa9fa2dd7946b8af63a4fb72d50a99dd (diff)
Fix a bug in which "16\d+6" matches 166 and the number is handled as Thailand one...
Diffstat (limited to 'android/PhoneNumberUtils.cpp')
-rw-r--r--android/PhoneNumberUtils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/android/PhoneNumberUtils.cpp b/android/PhoneNumberUtils.cpp
index cb8552e..47dd279 100644
--- a/android/PhoneNumberUtils.cpp
+++ b/android/PhoneNumberUtils.cpp
@@ -201,6 +201,8 @@ static int tryGetCountryCallingCode(const char *str, size_t len,
*new_len = len - (i + 1);
}
return 66;
+ } else {
+ return -1;
}
break;
default: