aboutsummaryrefslogtreecommitdiff
path: root/webAO
diff options
context:
space:
mode:
authorstonedDiscord <10584181+stonedDiscord@users.noreply.github.com>2020-11-09 17:06:10 +0100
committerstonedDiscord <10584181+stonedDiscord@users.noreply.github.com>2020-11-09 17:06:10 +0100
commitc33d1b2295ecb3e4aef1f8f6b8688edcb30b0280 (patch)
tree4d14501c61a1e23d4652e840e11aca2f58a727cd /webAO
parent1b55c65fab6cc30ce7a050e2dc01dc14c1c4260b (diff)
if your area name has a dot in it you're gonna have a bad day
Diffstat (limited to 'webAO')
-rw-r--r--webAO/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 038301a..dfae6b5 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -931,7 +931,7 @@ class Client extends EventEmitter {
}
isAudio(trackname) {
- if (/\.(?:wav|mp3|mp4|ogg|opus)$/i.test(trackname) || // regex for file extenstions
+ if (trackname.includes(".") || // regex for file extenstions
trackname.startsWith("=") ||
trackname.startsWith("-")) // category markers
{