filter u200b
This commit is contained in:
parent
e7d8a4b737
commit
3b82db830f
2
index.js
2
index.js
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user