From 2b46220f004ce9d1f86aff5e3f3ed3e48696b888 Mon Sep 17 00:00:00 2001 From: Martin Donnelly Date: Tue, 15 Mar 2016 17:39:40 +0000 Subject: [PATCH] Added general phone number validator. --- md-validator.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/md-validator.js b/md-validator.js index 04a9a5b..236a739 100644 --- a/md-validator.js +++ b/md-validator.js @@ -267,12 +267,10 @@ var VALIDATE = new function() { this.validatePhone = function(params) { "use strict"; - var f = params.f; var uk = params.uk || false; - var flag = params.flag; var v = params.number; var required = params.req || false; - var itrx, iflag = true; + var itrx; var onlyDigits = function(inval) {