1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-17 03:34:46 -05:00

Update html/search.ejs

This commit is contained in:
ashley 2024-08-02 10:54:38 +00:00
parent c264af305d
commit 4ac19500e3

View file

@ -655,7 +655,7 @@ const fakeNewsSources = {
search: "Is it true that The Sun publishes exaggerated or false stories?" search: "Is it true that The Sun publishes exaggerated or false stories?"
} }
}; };
>
const normalizedQuery = q.toLowerCase().replace(/\s+/g, ''); const normalizedQuery = q.toLowerCase().replace(/\s+/g, '');
const matchedSource = Object.keys(fakeNewsSources).find(source => normalizedQuery.includes(source.toLowerCase().replace(/\s+/g, ''))); const matchedSource = Object.keys(fakeNewsSources).find(source => normalizedQuery.includes(source.toLowerCase().replace(/\s+/g, '')));