Skip to content

Commit 12b0886

Browse files
committed
fix(auto-reply): avoid Unicode-unsafe token spread
1 parent e783dbd commit 12b0886

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/auto-reply/tokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ export function isSilentReplyPrefixText(
326326
// from the token. Otherwise, a pure-letter prefix like "HE" for "HELP-QUIET"
327327
// would suppress natural language that happens to share that prefix (#100007).
328328
if (/[^A-Z_]/.test(tokenUpper)) {
329-
return [...tokenUpper].some((ch) => /[^A-Z_]/.test(ch) && normalized.includes(ch));
329+
return /[^A-Z_]/.test(normalized);
330330
}
331331
return tokenUpper === SILENT_REPLY_TOKEN && normalized === "NO";
332332
}

0 commit comments

Comments
 (0)