mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
workspace: add eslint-config package (#510)
This commit is contained in:
1 parent
e7945a104f
commit
65311529bd
28 files changed
+230
-267
No files matched your search
@@ -11,7 +11,7 @@ const Base64 = {
|
||||
let enc3;
|
||||
let enc4;
|
||||
let i = 0;
|
||||
input = Base64._utf8_encode(input);
|
||||
input = Base64._utf8Encode(input);
|
||||
while (i < input.length) {
|
||||
chr1 = input.charCodeAt(i++);
|
||||
chr2 = input.charCodeAt(i++);
|
||||
@@ -52,11 +52,11 @@ const Base64 = {
|
||||
if (enc3 !== 64) output += String.fromCharCode(chr2);
|
||||
if (enc4 !== 64) output += String.fromCharCode(chr3);
|
||||
}
|
||||
output = Base64._utf8_decode(output);
|
||||
output = Base64._utf8Decode(output);
|
||||
return output;
|
||||
},
|
||||
|
||||
_utf8_encode(string) {
|
||||
_utf8Encode(string) {
|
||||
string = string.replace(/\r\n/g, '\n');
|
||||
let utftext = '';
|
||||
for (let n = 0; n < string.length; n++) {
|
||||
@@ -75,7 +75,7 @@ const Base64 = {
|
||||
return utftext;
|
||||
},
|
||||
|
||||
_utf8_decode(utftext) {
|
||||
_utf8Decode(utftext) {
|
||||
let string = '';
|
||||
let i = 0;
|
||||
let c = 0;
|
||||
|
||||
Reference in new issue
Block a user