mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
chore(zip) add jshint config
This commit is contained in:
parent
db35b0cc43
commit
c79ef4efeb
1 changed files with 6 additions and 2 deletions
|
|
@ -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 */
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue