refactor: remove dead code and unused exports
CI / check (push) Successful in 29s
CI / release (push) Skipped
CI / deploy (push) Successful in 59s

Delete proxy-auth.ts, types/index.ts, staff-user.ts+test, local-imports.ts+test (only used by their own tests). Remove unused foundation exports: sanitizeFilename, canonicalizeFormValue, canonicalizeFormData, ConflictError, getRequestStore, getClientIp, elapsed. Remove stale TODO comments from rank-authority.ts and notice.ts. Fix biome lint warnings in catalog-repair.ts.
This commit is contained in:
openhands committed 2026-08-07 18:55:02 +02:00
1 parent 510d070dc5
commit 24bf8eabb9
12 files changed
+2 -265

No files matched your search

+2 -2
View File
@@ -261,7 +261,7 @@ function derivePageCaption(classname: string, fallback: string): string {
const re = new RegExp(`^${prefix.replace(/_/g, "[_]?")}(?:_)?(\\d*)`, "i");
const m = lower.match(re);
if (m) {
const matchEnd = m.index! + m[0].length;
const matchEnd = (m.index ?? 0) + m[0].length;
const nextChar = lower[matchEnd];
if (
!nextChar ||
@@ -278,7 +278,7 @@ function derivePageCaption(classname: string, fallback: string): string {
// Also try matching suffix patterns (e.g., "something_xmas2025").
for (const prefix of sortedPrefixes) {
const re = new RegExp(
`${prefix.replace(/_/g, "[_]?")}(?:_)?(\\d{4})` + "(_|$)",
`${prefix.replace(/_/g, "[_]?")}(?:_)?(\\d{4})(_|$)`,
"i",
);
const m = lower.match(re);