mirror of
https://gitlab.silvrtree.co.uk/martind2000/node-validator.git
synced 2025-01-10 23:45:07 +00:00
Added general phone number validator.
This commit is contained in:
parent
78f09a300c
commit
2b46220f00
@ -267,12 +267,10 @@ var VALIDATE = new function() {
|
|||||||
this.validatePhone = function(params) {
|
this.validatePhone = function(params) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var f = params.f;
|
|
||||||
var uk = params.uk || false;
|
var uk = params.uk || false;
|
||||||
var flag = params.flag;
|
|
||||||
var v = params.number;
|
var v = params.number;
|
||||||
var required = params.req || false;
|
var required = params.req || false;
|
||||||
var itrx, iflag = true;
|
var itrx;
|
||||||
|
|
||||||
var onlyDigits = function(inval) {
|
var onlyDigits = function(inval) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user