atlasbot: fix word boundary detection

This commit is contained in:
Brad Stein 2026-01-27 23:01:51 -03:00
parent 380aae3b2c
commit 4b468b0f97

View File

@ -553,7 +553,7 @@ def _has_any(text: str, phrases: tuple[str, ...]) -> bool:
if phrase in text:
return True
else:
if re.search(rf"\\b{re.escape(phrase)}\\b", text):
if re.search(rf"\b{re.escape(phrase)}\b", text):
return True
return False