Fixed tags with parentheses not getting matched.

This commit is contained in:
DebaucheryLibrarian
2026-02-22 03:41:54 +01:00
parent 4e68a69e02
commit 3ee73d2f77

View File

@@ -76,7 +76,7 @@ function withRelations(queryBuilder, withMedia) {
async function matchReleaseTags(releases) {
const tags = releases
.map((release) => release.tags).flat()
.map((tag) => tag?.trim().match(/[a-z0-9]+/ig)?.join(' ').toLowerCase())
.map((tag) => tag?.trim().match(/[a-z0-9()]+/ig)?.join(' ').toLowerCase())
.filter(Boolean);
const tagEntries = await knex('tags')