fix: debounce docs search input

This commit is contained in:
Peter Steinberger 2026-05-07 01:45:44 +01:00
parent f7e18141ce
commit 80d6483d66
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -91,6 +91,9 @@ if (/data-locale/.test(siteJs)) {
if (!/function initChat/.test(siteJs) || !/data-chat-form/.test(siteJs)) {
throw new Error("assets: docs chat behavior is missing");
}
if (!/function runSearch/.test(siteJs) || !/setTimeout\(\(\)=>runSearch\(q,id\),140\)/.test(siteJs)) {
throw new Error("assets: search input is not debounced");
}
const platformsIndex = fs.readFileSync(path.join(site, "platforms/index.html"), "utf8");
if (/VPS & hosting/.test(platformsIndex)) {
throw new Error("platforms index: TOC double-escaped ampersand");