Initial import

This commit is contained in:
how2ice
2026-04-21 03:33:23 +09:00
commit 9e4b70f1f1
495 changed files with 94680 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
const IDENTIFIER_PATTERN = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
export function assertIdentifier(value: string, label = 'identifier') {
if (!IDENTIFIER_PATTERN.test(value)) {
throw new Error(`Invalid ${label}: ${value}`);
}
return value;
}