Remame to hco
Some checks failed
On Push Deploy / deploy (push) Has been cancelled

This commit is contained in:
Johnny322
2026-02-08 16:25:49 +01:00
parent 0c34f2097d
commit 56599afd59
41 changed files with 1 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ const answerFiles = import.meta.globEager('./Data/*/*/answers/*.mp3') as Record<
const getParts = (path: string) => {
const normalized = path.replace(/\\/g, '/')
const parts = normalized.split('/')
const dataIndex = parts.indexOf('Data')
const dataIndex = parts.findIndex((part) => part.toLowerCase() === 'data')
if (dataIndex === -1) return null
const game = parts[dataIndex + 1]
const category = parts[dataIndex + 2]