Browse Source

Email validator regexp typo fix.

tags/2.0.0-beta
resurtm 12 years ago
parent
commit
e70c98f977
  1. 2
      yii/assets/yii.validation.js

2
yii/assets/yii.validation.js

@ -139,7 +139,7 @@ yii.validation = (function ($) {
var valid = true; var valid = true;
if (options.enableIDN) { if (options.enableIDN) {
var regexp = /^([^:]+):\/\/([^\/]+)(.*)?/, var regexp = /^([^:]+):\/\/([^\/]+)(.*)$/,
matches = regexp.exec(value); matches = regexp.exec(value);
if (matches === null) { if (matches === null) {
valid = false; valid = false;

Loading…
Cancel
Save