import { U as escapeRegExp } from "./registry-C-JddWwo.js";

//#region src/auto-reply/tokens.ts
const SILENT_REPLY_TOKEN = "NO_REPLY";
function isSilentReplyText(text, token = SILENT_REPLY_TOKEN) {
	if (!text) return false;
	const escaped = escapeRegExp(token);
	if (new RegExp(`^\\s*${escaped}(?=$|\\W)`).test(text)) return true;
	return new RegExp(`\\b${escaped}\\b\\W*$`).test(text);
}

//#endregion
export { isSilentReplyText as n, SILENT_REPLY_TOKEN as t };