From e70c98f97703bf7d17a89030e3dfd648b476199a Mon Sep 17 00:00:00 2001 From: resurtm Date: Thu, 16 May 2013 00:39:52 +0600 Subject: [PATCH] Email validator regexp typo fix. --- yii/assets/yii.validation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yii/assets/yii.validation.js b/yii/assets/yii.validation.js index c9d62bd..2748a74 100644 --- a/yii/assets/yii.validation.js +++ b/yii/assets/yii.validation.js @@ -139,7 +139,7 @@ yii.validation = (function ($) { var valid = true; if (options.enableIDN) { - var regexp = /^([^:]+):\/\/([^\/]+)(.*)?/, + var regexp = /^([^:]+):\/\/([^\/]+)(.*)$/, matches = regexp.exec(value); if (matches === null) { valid = false;