mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-01 14:57:14 +08:00
fix(utils): wrong auto fix for getAcwScV2ByArg1
This commit is contained in:
@@ -13,10 +13,12 @@ const getAcwScV2ByArg1 = (arg1) => {
|
||||
}
|
||||
return res;
|
||||
};
|
||||
const unsbox = function (str) {
|
||||
const unsbox = function (str: string) {
|
||||
const code = [15, 35, 29, 24, 33, 16, 1, 38, 10, 9, 19, 31, 40, 27, 22, 23, 25, 13, 6, 11, 39, 18, 20, 8, 14, 21, 32, 26, 2, 30, 7, 4, 17, 5, 3, 28, 34, 37, 12, 36];
|
||||
const res = [];
|
||||
for (const [i, cur] of str.entries()) {
|
||||
const res: string[] = [];
|
||||
// eslint-disable-next-line unicorn/no-for-loop
|
||||
for (let i = 0; i < str.length; i++) {
|
||||
const cur = str[i];
|
||||
for (const [j, element] of code.entries()) {
|
||||
if (element === i + 1) {
|
||||
res[j] = cur;
|
||||
|
||||
Reference in New Issue
Block a user