filter u200b

This commit is contained in:
Lamp 2024-06-20 00:31:22 -07:00
parent e7d8a4b737
commit 3b82db830f

@ -24,7 +24,7 @@ router.get(["/search", "/trending"], async ctx => {
ctx.body = "missing search query";
return;
}
query = decodeURIComponent(query).replace(/^.*→/, '').trim();
query = decodeURIComponent(query).replace(/^.*→/, '').replaceAll("\u200b", '').trim();
}
if (!ctx.query.pool || !/^[a-z-_]+\d*$/.test(ctx.query.pool)) {