mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -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) =>
|
const matched = keywords.some((and) =>
|
||||||
and.every((keyword) =>
|
and.every((keyword) =>
|
||||||
antenna.caseSensitive
|
antenna.caseSensitive
|
||||||
? note.text!.includes(keyword)
|
? note.text!.includes(keyword) || note.cw?.includes(keyword)
|
||||||
: note.text!.toLowerCase().includes(keyword.toLowerCase()),
|
: 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) =>
|
const matched = excludeKeywords.some((and) =>
|
||||||
and.every((keyword) =>
|
and.every((keyword) =>
|
||||||
antenna.caseSensitive
|
antenna.caseSensitive
|
||||||
? note.text!.includes(keyword)
|
? note.text!.includes(keyword) || note.cw?.includes(keyword)
|
||||||
: note.text!.toLowerCase().includes(keyword.toLowerCase()),
|
: note.text!.toLowerCase().includes(keyword.toLowerCase()) || note.cw?.toLowerCase().includes(keyword.toLowerCase()),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue