From a37fc575a4ac40f3ff2e9a9f2108b577a649db73 Mon Sep 17 00:00:00 2001 From: Bin Zhu Date: Wed, 19 Sep 2012 15:00:49 +0200 Subject: Allow three digit phone numbers The comment for the PHONE pattern says: "+" 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 --- core/tests/coretests/src/android/util/PatternsTest.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/tests') 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", -- cgit v1.1