RCO: expand page search (#8541)
Co-authored-by: AwkwardPeak7 <48650614+AwkwardPeak7@users.noreply.github.com>
This commit is contained in:
parent
b6ab8fb843
commit
ad829436f1
@ -29,19 +29,28 @@
|
||||
|
||||
arrays.forEach(arrayValue => {
|
||||
functions.forEach(funcValue => {
|
||||
try {
|
||||
const mapped = arrayValue.map(x => funcValue(x));
|
||||
const argCount = funcValue.length;
|
||||
|
||||
if (
|
||||
Array.isArray(mapped) &&
|
||||
mapped.length != 0 &&
|
||||
mapped.every(item => typeof item === 'string' && isValidUrl(item))
|
||||
) {
|
||||
results.push(mapped);
|
||||
}
|
||||
} catch (err) {}
|
||||
for (let i = 0; i < argCount; i++) {
|
||||
try {
|
||||
const mapped = arrayValue.map(elem => {
|
||||
const args = new Array(argCount).fill(undefined);
|
||||
args[i] = elem;
|
||||
return funcValue(...args);
|
||||
});
|
||||
|
||||
if (
|
||||
Array.isArray(mapped) &&
|
||||
mapped.length !== 0 &&
|
||||
mapped.every(item => typeof item === 'string' && isValidUrl(item))
|
||||
) {
|
||||
results.push(mapped);
|
||||
break;
|
||||
}
|
||||
} catch (err) {}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
return results
|
||||
return results;
|
||||
})();
|
||||
|
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'ReadComicOnline'
|
||||
extClass = '.Readcomiconline'
|
||||
extVersionCode = 33
|
||||
extVersionCode = 34
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
Loading…
x
Reference in New Issue
Block a user