mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 16:58:14 +01:00
Update html/search.ejs
This commit is contained in:
parent
c264af305d
commit
4ac19500e3
1 changed files with 1 additions and 1 deletions
|
@ -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, '')));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue