Skip to content

Commit

Permalink
Adjust character group.
Browse files Browse the repository at this point in the history
  • Loading branch information
g1smd committed Sep 17, 2012
1 parent 18f5acd commit a25e5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion additional-methods.js
Expand Up @@ -206,7 +206,7 @@ jQuery.validator.addMethod('phonesUK', function(phone_number, element) {
}, 'Please specify a valid uk phone number');
// On the above three UK functions, do the following server side processing:
// Compare original input with this RegEx pattern:
// ^\(?(?:(?:00\)?[\s-]?\(?|\+)(44)\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)([1-9]\d{1,4}\)?[\s-\d]+)$
// ^\(?(?:(?:00\)?[\s-]?\(?|\+)(44)\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)([1-9]\d{1,4}\)?[\s\d-]+)$
// Extract $1 and set $prefix to '+44<space>' if $1 is '44', otherwise set $prefix to '0'
// Extract $2 and remove hyphens, spaces and parentheses. Phone number is combined $prefix and $2.
// A number of very detailed GB telephone number RegEx patterns can also be found at:
Expand Down

0 comments on commit a25e5db

Please sign in to comment.