diff --git a/README.md b/README.md index 43609cc..bb830d3 100644 --- a/README.md +++ b/README.md @@ -26,8 +26,8 @@ Releases are available for download from GitHub. | **Version** | **Description** | **Size** | **Action** | |:------------|:----------------|:---------|:-----------| -| `amanda.js` | *uncompressed, with comments* | 9.43 KB (2.45 KB gzipped) | [Download](https://raw.github.com/Baggz/Amanda/master/src/amanda.js) | -| `amanda.min.js` | *compressed, without comments* | 4.53 KB (1.58 KB gzipped) | [Download](https://raw.github.com/Baggz/Amanda/master/dist/amanda.min.js) | +| `amanda.js` | *uncompressed, with comments* | 9.34 KB (2.34 KB gzipped) | [Download](https://raw.github.com/Baggz/Amanda/master/src/amanda.js) | +| `amanda.min.js` | *compressed, without comments* | 4.48 KB (1.57 KB gzipped) | [Download](https://raw.github.com/Baggz/Amanda/master/dist/amanda.min.js) | # Documentation diff --git a/dist/amanda.min.js b/dist/amanda.min.js index ac4118b..01c9d3f 100644 --- a/dist/amanda.min.js +++ b/dist/amanda.min.js @@ -1,8 +1,8 @@ (function(){var g=function(c,a,b,e,d){for(var h=["paramName","paramValue","validatorName","validatorValue","message"],i=0,f=arguments.length;ib[1]))return d(new g(c,a,"length",b,null));if(typeof b==="number"&&a.length!==b)return d(new g(c,a,"length",b,null))}return d(null)});f.addValidator("values",function(c,a,b,e,d){return b.indexOf(a)===-1?d(new g(c,a,"values",b,null)):d(null)});f.addValidator("except", function(c,a,b,e,d){return b.indexOf(a)!==-1?d(new g(c,a,"except",b,null)):d(null)});f.addValidator("min",function(c,a,b,e,d){return typeof a==="number"&&ab?d(new g(c,a,"max",b,null)):d(null)});f.addValidator("pattern",function(c,a,b,e,d){return typeof a==="string"&&!a.match(b)?d(new g(c,a,"pattern",b,null)):d(null)});typeof module!=="undefined"&&module.exports?module.exports=f:typeof define!==