mirror of
https://codeberg.org/ashley/poke
synced 2025-04-05 09:07:59 +00:00
Update html/search.ejs
This commit is contained in:
parent
c264af305d
commit
4ac19500e3
@ -655,7 +655,7 @@ const fakeNewsSources = {
|
||||
search: "Is it true that The Sun publishes exaggerated or false stories?"
|
||||
}
|
||||
};
|
||||
>
|
||||
|
||||
const normalizedQuery = q.toLowerCase().replace(/\s+/g, '');
|
||||
const matchedSource = Object.keys(fakeNewsSources).find(source => normalizedQuery.includes(source.toLowerCase().replace(/\s+/g, '')));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user