mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 06:48:59 +08:00
Email validator regexp typo fix.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user