v0.3.49: Dedup validation — validate cached link before returning to avoid showing invalid links

This commit is contained in:
2026-05-18 01:06:28 +08:00
parent e4e3884ffc
commit 7f4ab50557
13 changed files with 1635 additions and 37 deletions

View File

@@ -134,7 +134,7 @@ export function magicRenameDir(dirName) {
const noiseCount = Math.random() < 0.3 ? (Math.random() < 0.5 ? 1 : 2) : 0;
for (let n = 0; n < noiseCount; n++) {
const pos = Math.floor(Math.random() * (baseName.length + 1));
const ink = NOISE_CJK[Math.floor(Math.random() * NOISE.length)];
const ink = NOISE_CJK[Math.floor(Math.random() * NOISE_CJK.length)];
baseName = baseName.slice(0, pos) + ink + baseName.slice(pos);
}
}