Versie 0.2.0
This commit is contained in:
commit
e77d8fd373
495 files changed
+81026
No files matched your search
@@ -0,0 +1,12 @@
|
||||
// Generated, do not edit. sha256:934f10111106ef1ed676c3715e4aeefd364cfa02688bedd903fe7320f775ae01
|
||||
export const HANDLE_VORM = /^([a-zA-Z]+):([0-9a-f]{6}|[1-9][0-9]*)$/;
|
||||
|
||||
export function idVoorHandle(t, soort, gevraagd, ids) {
|
||||
const gezocht = String(gevraagd ?? '').trim();
|
||||
if (!gezocht) return null;
|
||||
for (const id of ids) {
|
||||
const uit = String(t.toAi({ id }, { entity: soort }).id);
|
||||
if (uit === gezocht || `${soort}:${uit}` === gezocht) return id;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
Reference in new issue
Block a user