mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
Make antennas also match on CW text, resolves #117
This commit is contained in:
parent
40a0f31089
commit
afeadd5bfb
1 changed files with 4 additions and 4 deletions
|
@ -101,8 +101,8 @@ export async function checkHitAntenna(
|
|||
const matched = keywords.some((and) =>
|
||||
and.every((keyword) =>
|
||||
antenna.caseSensitive
|
||||
? note.text!.includes(keyword)
|
||||
: note.text!.toLowerCase().includes(keyword.toLowerCase()),
|
||||
? note.text!.includes(keyword) || note.cw?.includes(keyword)
|
||||
: note.text!.toLowerCase().includes(keyword.toLowerCase()) || note.cw?.toLowerCase().includes(keyword.toLowerCase()),
|
||||
),
|
||||
);
|
||||
|
||||
|
@ -120,8 +120,8 @@ export async function checkHitAntenna(
|
|||
const matched = excludeKeywords.some((and) =>
|
||||
and.every((keyword) =>
|
||||
antenna.caseSensitive
|
||||
? note.text!.includes(keyword)
|
||||
: note.text!.toLowerCase().includes(keyword.toLowerCase()),
|
||||
? note.text!.includes(keyword) || note.cw?.includes(keyword)
|
||||
: note.text!.toLowerCase().includes(keyword.toLowerCase()) || note.cw?.toLowerCase().includes(keyword.toLowerCase()),
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue