decord/source/6812_fuzzysearch.js

37 lines
744 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6812
// Function ID: 6813
2026-07-20 16:05:17 +00:00
// Name: fuzzysearch
// Dependencies: []
2026-08-24 06:08:38 +00:00
// Module 6812 (fuzzysearch)
2026-07-20 16:05:17 +00:00
export default function fuzzysearch(arg0, str) {
if (arg0.length > str.length) {
return false;
} else if (length2 === length) {
return arg0 === str;
} else {
let num = 0;
2026-07-29 08:29:29 +00:00
let num3 = 0;
2026-07-20 16:05:17 +00:00
if (0 < length2) {
2026-07-29 08:29:29 +00:00
let tmp2 = num3;
while (num3 < length) {
let sum = tmp2 + 1;
while (str.charCodeAt(tmp2) !== tmp) {
tmp2 = sum;
2026-07-20 16:05:17 +00:00
if (sum < length) {
continue;
} else {
break label0;
}
let flag = false;
return false;
}
2026-07-29 08:29:29 +00:00
num = num + 1;
num3 = sum;
2026-07-20 16:05:17 +00:00
}
}
return true;
}
};