Email validator regexp typo fix.

This commit is contained in:
resurtm
2013-05-16 00:39:52 +06:00
parent 992e902885
commit e70c98f977

View File

@@ -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;