|
@@ -32,7 +32,7 @@
|
|
|
|
|
|
|
|
var country = (options.country || 'US').toUpperCase();
|
|
var country = (options.country || 'US').toUpperCase();
|
|
|
switch (country) {
|
|
switch (country) {
|
|
|
- case 'CA': return /^(?:A|B|C|E|G|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|J|K|L|M|N|P|R|S|T|V|X|Y){1}\s?[0-9]{1}(?:A|B|C|E|G|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}$/i.test(value);
|
|
|
|
|
|
|
+ case 'CA': return /^(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}\s?[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}$/i.test(value);
|
|
|
case 'DK': return /^(DK(-|\s)?)?\d{4}$/i.test(value);
|
|
case 'DK': return /^(DK(-|\s)?)?\d{4}$/i.test(value);
|
|
|
case 'GB': return this._gb(value);
|
|
case 'GB': return this._gb(value);
|
|
|
|
|
|