fix: close record repair and verification gaps
This commit is contained in:
1 parent
9251c85fd8
commit
adff599e08
27 files changed
+787
-153
No files matched your search
@@ -108,7 +108,10 @@ export function matchRoute(method: string, apiPath: string): RouteMatch | null {
|
||||
const v = groups[i];
|
||||
if (v === null || v === undefined) return;
|
||||
if (t === 'zone') out.zone = normalizeZoneParam(v);
|
||||
if (t === 'record') out.recordId = /^[0-9]{1,9}$/.test(v) ? Number(v) : null;
|
||||
if (t === 'record' && /^\+?[0-9]+$/.test(v)) {
|
||||
const id = Number(v);
|
||||
if (id > 0 && id <= 0xffffffff) out.recordId = id;
|
||||
}
|
||||
if (t === 'user' || t === 'delegation') out.targetUser = v;
|
||||
});
|
||||
return out;
|
||||
|
||||
Reference in new issue
Block a user