aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/util.ts
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2024-03-10 00:13:25 +0000
committerLeonardo Bishop <me@leonardobishop.com>2024-03-10 00:13:25 +0000
commit9a11e0f4a38297006b89cc7bb2a60734111582e0 (patch)
tree5ebddde79e67b659714b5dbdbfcea289f06a4ae5 /src/lib/util.ts
parent817478f3cf357fc09778d9dc3cf67a667e21f042 (diff)
Migrate to nuxt
Diffstat (limited to 'src/lib/util.ts')
-rw-r--r--src/lib/util.ts18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lib/util.ts b/src/lib/util.ts
deleted file mode 100644
index b8be8cb..0000000
--- a/src/lib/util.ts
+++ /dev/null
@@ -1,18 +0,0 @@
-const COLOR_CODE_REGEX = /&[0-9a-fk-or]/i;
-const VALID_ID_REGEX = /^[a-z0-9_]+$/i;
-
-export function stripColorCodes(str: string): string {
- return str.replace(COLOR_CODE_REGEX, '');
-}
-
-export function validateQuestId(id: string): boolean {
- return VALID_ID_REGEX.test(id);
-}
-
-export function validateCategoryId(id: string): boolean {
- return VALID_ID_REGEX.test(id);
-}
-
-export function validateTaskId(id: string): boolean {
- return VALID_ID_REGEX.test(id);
-} \ No newline at end of file