Browse Source

Remove dkZipCode.js (added to zipCode validator)

nghuuphuoc 11 years ago
parent
commit
0256f1debc
1 changed files with 0 additions and 19 deletions
  1. 0 19
      src/js/validator/dkZipCode.js

+ 0 - 19
src/js/validator/dkZipCode.js

@@ -1,19 +0,0 @@
-(function($) {
-    $.fn.bootstrapValidator.validators.dkZipCode = {
-        /**
-         * Return true if and only if the input value is a valid DK zip code
-         *
-         * @param {BootstrapValidator} validator The validator plugin instance
-         * @param {jQuery} $field Field element
-         * @param {Object} options
-         * @returns {Boolean}
-         */
-        validate: function(validateInstance, $field, options) {
-            var value = $field.val();
-            if (value == '') {
-                return true;
-            }
-            return /^(DK(-|\s)?)?\d{4}$/i.test(value);
-        }
-    };
-}(window.jQuery));