chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -7,9 +7,7 @@ function matchUrlPattern(pattern: string, url: string): boolean {
if (p === url) return true;
if (p.includes("*")) {
const escaped = p.replace(/[|\\{}()[\]^$+?.]/g, "\\$&");
const regex = new RegExp(
`^${escaped.replace(/\*\*/g, ".*").replace(/\*/g, ".*")}$`,
);
const regex = new RegExp(`^${escaped.replace(/\*\*/g, ".*").replace(/\*/g, ".*")}$`);
return regex.test(url);
}
return url.includes(p);
@@ -94,13 +92,10 @@ export async function responseBodyViaPlaywright(opts: {
bodyText = new TextDecoder("utf-8").decode(buf);
}
} catch (err) {
throw new Error(
`Failed to read response body for "${url}": ${String(err)}`,
);
throw new Error(`Failed to read response body for "${url}": ${String(err)}`);
}
const trimmed =
bodyText.length > maxChars ? bodyText.slice(0, maxChars) : bodyText;
const trimmed = bodyText.length > maxChars ? bodyText.slice(0, maxChars) : bodyText;
return {
url,
status,