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;