chore: fix frontend formatting checks

This commit is contained in:
3252a8
2026-05-23 16:01:07 +03:00
parent 19ba5c8f11
commit fbc3e6c084
5 changed files with 111 additions and 69 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ export function sectionFromPath(pathname) {
}
export function publicInstallTokenFromPath(pathname) {
const normalized = String(pathname || "").trim().replace(/\/+$/, "");
const normalized = String(pathname || "")
.trim()
.replace(/\/+$/, "");
const match = normalized.match(/^\/s\/([a-f0-9]{32})$/i);
return match ? match[1].toLowerCase() : "";
}