From 51a7dfbe17b7996537141a8ca87e3c7659e485bd Mon Sep 17 00:00:00 2001 From: Nikolai WInther Juhl Date: Thu, 7 May 2026 22:29:58 +0200 Subject: [PATCH] =?UTF-8?q?conversation:=20fix=20invalid=20\]=20escape=20i?= =?UTF-8?q?n=20re.search=20character=20class=20=E2=80=94=20Python=203.12+?= =?UTF-8?q?=20raises=20SyntaxWarning=20(3.14=20SyntaxError)=20on=20the=20r?= =?UTF-8?q?egex=20literal=20at=20conversation.py:316;=20the=20pattern=20wa?= =?UTF-8?q?s=20two=20adjacent=20string=20literals=20where=20the=20second?= =?UTF-8?q?=20was=20non-raw=20and=20contained=20\].=20Consolidating=20into?= =?UTF-8?q?=20a=20single=20raw=20string=20preserves=20regex=20semantics.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- custom_components/openclaw/conversation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/openclaw/conversation.py b/custom_components/openclaw/conversation.py index 633a7d1..11ded95 100644 --- a/custom_components/openclaw/conversation.py +++ b/custom_components/openclaw/conversation.py @@ -313,7 +313,7 @@ def _should_continue(response: str) -> bool: # Check if the response ends with a question mark # (allow trailing punctuation like quotes, parens, or emoji) - if re.search(r"\?\s*[\"'""»)\]]*\s*$", text): + if re.search(r"\?\s*[\"'»)\]]*\s*$", text): return True # Common follow-up patterns (EN + DE)