aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2023-07-27 12:11:48 +0200
committerstonedDiscord <Tukz@gmx.de>2023-07-27 12:11:48 +0200
commit9dd5f62f9e5ae8fe26b959ac03b8386836185241 (patch)
treead6a1c1385a6c438bfc796157707a89beadb7be9 /webAO
parente5adad3edbce030411f03e192046c910fef4e185 (diff)
category
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client/isCategory.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/webAO/client/isCategory.ts b/webAO/client/isCategory.ts
new file mode 100644
index 0000000..0d2b8df
--- /dev/null
+++ b/webAO/client/isCategory.ts
@@ -0,0 +1,6 @@
+export const isCategory = (trackname: string) => {
+ const audioEndings = ["==", "--"];
+ return (
+ audioEndings.filter((ending) => trackname.startsWith(ending)).length === 1
+ );
+} \ No newline at end of file