diff options
author | Wink Saville <wink@google.com> | 2013-02-21 15:19:53 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-02-21 15:19:53 -0800 |
commit | fb053cde74483f901462b5a034dd2be90a5af0da (patch) | |
tree | 155a463267f4540565a47693376de6c1d8524980 /core/java/android/util | |
parent | e96558879ec7008ddf5647ad29d69ec1fad68c67 (diff) | |
parent | f7bf667d4a5e8e3fca75640f6352724826705128 (diff) | |
download | frameworks_base-fb053cde74483f901462b5a034dd2be90a5af0da.zip frameworks_base-fb053cde74483f901462b5a034dd2be90a5af0da.tar.gz frameworks_base-fb053cde74483f901462b5a034dd2be90a5af0da.tar.bz2 |
am f7bf667d: am b5a1ce2f: Merge "Allow three digit phone numbers"
* commit 'f7bf667d4a5e8e3fca75640f6352724826705128':
Allow three digit phone numbers
Diffstat (limited to 'core/java/android/util')
-rw-r--r-- | core/java/android/util/Patterns.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/util/Patterns.java b/core/java/android/util/Patterns.java index 152827d..9522112 100644 --- a/core/java/android/util/Patterns.java +++ b/core/java/android/util/Patterns.java @@ -169,10 +169,10 @@ public class Patterns { * </ul> */ public static final Pattern PHONE - = Pattern.compile( // sdd = space, dot, or dash - "(\\+[0-9]+[\\- \\.]*)?" // +<digits><sdd>* - + "(\\([0-9]+\\)[\\- \\.]*)?" // (<digits>)<sdd>* - + "([0-9][0-9\\- \\.][0-9\\- \\.]+[0-9])"); // <digit><digit|sdd>+<digit> + = Pattern.compile( // sdd = space, dot, or dash + "(\\+[0-9]+[\\- \\.]*)?" // +<digits><sdd>* + + "(\\([0-9]+\\)[\\- \\.]*)?" // (<digits>)<sdd>* + + "([0-9][0-9\\- \\.]+[0-9])"); // <digit><digit|sdd>+<digit> /** * Convenience method to take all of the non-null matching groups in a |