浏览代码

#348: The uri validator now provides an option to support private/local network address

nghuuphuoc 11 年之前
父节点
当前提交
3f62bb9097
共有 5 个文件被更改,包括 93 次插入87 次删除
  1. 1 0
      CHANGELOG.md
  2. 1 0
      demo/validators.html
  3. 45 43
      dist/js/bootstrapValidator.js
  4. 1 1
      dist/js/bootstrapValidator.min.js
  5. 45 43
      src/js/validator/uri.js

+ 1 - 0
CHANGELOG.md

@@ -30,6 +30,7 @@ __Improvements__
 * [#274](https://github.com/nghuuphuoc/bootstrapvalidator/pull/274): Fix feedback icons in ```input-group```, thanks to [@tiagofontella](https://github.com/tiagofontella)
 * [#274](https://github.com/nghuuphuoc/bootstrapvalidator/pull/274): Fix feedback icons in ```input-group```, thanks to [@tiagofontella](https://github.com/tiagofontella)
 * [#287](https://github.com/nghuuphuoc/bootstrapvalidator/issues/287): Only send the submit button which is clicked. It's an enhancement for [#238](https://github.com/nghuuphuoc/bootstrapvalidator/issues/238)
 * [#287](https://github.com/nghuuphuoc/bootstrapvalidator/issues/287): Only send the submit button which is clicked. It's an enhancement for [#238](https://github.com/nghuuphuoc/bootstrapvalidator/issues/238)
 * [#297](https://github.com/nghuuphuoc/bootstrapvalidator/issues/297): Disable feedback icons for particular fields
 * [#297](https://github.com/nghuuphuoc/bootstrapvalidator/issues/297): Disable feedback icons for particular fields
+* [#348](https://github.com/nghuuphuoc/bootstrapvalidator/issues/348): The [uri validator](http://bootstrapvalidator.com/validators/uri/) now provides an option to support private/local network address
 * [#364](https://github.com/nghuuphuoc/bootstrapvalidator/issues/364): Clicking the feedback icon also effect to the checkbox, radio fields
 * [#364](https://github.com/nghuuphuoc/bootstrapvalidator/issues/364): Clicking the feedback icon also effect to the checkbox, radio fields
 
 
 __Bug Fixes__
 __Bug Fixes__

+ 1 - 0
demo/validators.html

@@ -197,6 +197,7 @@ $(document).ready(function() {
             website: {
             website: {
                 validators: {
                 validators: {
                     uri: {
                     uri: {
+                        allowLocal: true,
                         message: 'The input is not a valid URL'
                         message: 'The input is not a valid URL'
                     }
                     }
                 }
                 }

文件差异内容过多而无法显示
+ 45 - 43
dist/js/bootstrapValidator.js


文件差异内容过多而无法显示
+ 1 - 1
dist/js/bootstrapValidator.min.js


文件差异内容过多而无法显示
+ 45 - 43
src/js/validator/uri.js