chore: carry over lab3 implementation

This commit is contained in:
2026-11-05 12:31:02 +03:00
parent ec540a1a72
commit 4ffde2494c
73 changed files with 14538 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
const UUID_PATTERN =
/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
export function validate(value: string): boolean {
return UUID_PATTERN.test(value);
}