Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
imagens anroll
Browse files Browse the repository at this point in the history
  • Loading branch information
uesleibros committed Sep 1, 2024
1 parent 94774c5 commit 3b7d956
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/api/buscar/animes/anroll/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,13 @@ export async function GET(request) {
for (let i = 0; i < data.length; i++) {
let item = data[i];
item.title = item.title.replace('×', 'x').replace(':', '').toLowerCase();
console.log(item.title)

if (item.title.startsWith(query))
responses.push(item);
if (item.title.split(' ')[0].includes(query.split(' ')[0]))
responses.push(item);
if (item.slug == toSlug(query))
responses.push(item);
}
data = responses;
}
Expand Down

0 comments on commit 3b7d956

Please sign in to comment.