spam-rescue: своё название (KH Build) не считается словом отбора
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -67,7 +67,7 @@ export async function loadRules(pool: Pool): Promise<RescueRules> {
|
||||
const numbers = new Set<string>();
|
||||
const add = (s: string | null | undefined): void => {
|
||||
const n = s ? normalizeTerm(s) : null;
|
||||
if (n) terms.add(n);
|
||||
if (n && !/^kh ?build/.test(n)) terms.add(n); // своё название встречается в каждом письме
|
||||
};
|
||||
const vendors = await pool.query<{ display_name: string | null; company_name: string | null }>("select display_name, company_name from qbo_vendor where active");
|
||||
for (const v of vendors.rows) {
|
||||
|
||||
Reference in New Issue
Block a user