diff --git a/lib/client/zip.js b/lib/client/zip.js index c551f476..859fa49b 100644 --- a/lib/client/zip.js +++ b/lib/client/zip.js @@ -3,9 +3,11 @@ var Util, Zip, pako; (function () { 'use strict'; + /*jshint nonstandard:false */ var UTF8 = { unescape: typeof unescape === 'function' ? unescape : decode }; + /*jshint nonstandard:true */ Zip = new ZipProto(); @@ -44,6 +46,7 @@ var Util, Zip, pako; } } + /* jshint bitwise:false */ /* unescape polyfill * http://unixpapa.com/js/querystring.html */ @@ -51,8 +54,8 @@ var Util, Zip, pako; s = s.replace(/%([EF][0-9A-F])%([89AB][0-9A-F])%([89AB][0-9A-F])/gi, function(code,hex1,hex2,hex3) { var n, n3, - n1 = parseInt(hex1,16)-0xE0; - n2 = parseInt(hex2,16)-0x80; + n1 = parseInt(hex1,16) - 0xE0, + n2 = parseInt(hex2,16) - 0x80; if (n1 === 0 && n2 < 32) return code; @@ -85,4 +88,5 @@ var Util, Zip, pako; return s; } + /* jshint bitwise:true */ })();