diff options
author | Bin Zhu <bin.zhu@sonyericsson.com> | 2012-09-19 15:00:49 +0200 |
---|---|---|
committer | Johan Redestig <johan.redestig@sonymobile.com> | 2013-02-15 11:54:41 +0100 |
commit | a37fc575a4ac40f3ff2e9a9f2108b577a649db73 (patch) | |
tree | 9eb9804a12a16f772b3542f180d1c104f4a8b577 /core/tests | |
parent | c5748148c56e129e7b5cec7fac0921ce7967d054 (diff) | |
download | frameworks_base-a37fc575a4ac40f3ff2e9a9f2108b577a649db73.zip frameworks_base-a37fc575a4ac40f3ff2e9a9f2108b577a649db73.tar.gz frameworks_base-a37fc575a4ac40f3ff2e9a9f2108b577a649db73.tar.bz2 |
Allow three digit phone numbers
The comment for the PHONE pattern says:
"<digit><digit|sdd>+<digit>"
But the actual pattern requires that the string contains
more than that. A phone number should be allowed to be
three digits.
Change-Id: I86d2f3d634cd0c1654dad9814906f151055dc23a
Diffstat (limited to 'core/tests')
-rw-r--r-- | core/tests/coretests/src/android/util/PatternsTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/tests/coretests/src/android/util/PatternsTest.java b/core/tests/coretests/src/android/util/PatternsTest.java index 9519b9f..ebdbb0e 100644 --- a/core/tests/coretests/src/android/util/PatternsTest.java +++ b/core/tests/coretests/src/android/util/PatternsTest.java @@ -156,6 +156,8 @@ public class PatternsTest extends TestCase { "Me: 16505551212 this\n", "Me: 6505551212 this\n", "Me: 5551212 this\n", + "Me: 2211 this\n", + "Me: 112 this\n", "Me: 1-650-555-1212 this\n", "Me: (650) 555-1212 this\n", |