mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-07-18 16:32:35 -05:00
Modlog: Fix bug with note searches
This commit is contained in:
parent
599d7a677a
commit
d3ca242ff7
|
|
@ -445,7 +445,7 @@ export class Modlog {
|
|||
|
||||
for (const noteSearch of search.note) {
|
||||
const tester = noteSearch.isExact ? `= ?` : `LIKE ?`;
|
||||
const args = [noteSearch.isExact ? noteSearch + '%' : `%${noteSearch}%`];
|
||||
const args = [noteSearch.isExact ? noteSearch.search + '%' : `%${noteSearch.search}%`];
|
||||
if (noteSearch.isExclusion) {
|
||||
ands.push({query: `note ${noteSearch.isExact ? '!' : 'NOT '}${tester}`, args});
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user