From dbb49f214f0f8b57f9be2a11fda771636a0ec775 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 10 Jan 2021 19:54:47 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Remove=20!=20from=20the=20comman?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet_console/pda.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/royalnet_console/pda.py b/royalnet_console/pda.py index 993fda8b..534dd50a 100644 --- a/royalnet_console/pda.py +++ b/royalnet_console/pda.py @@ -81,9 +81,9 @@ class ConsolePDA: """ log.debug(f"Completing partial: {part!r}") if part.syntax: - command = part.complete(pattern=r"^!{name}\s+{syntax}$", names=names) + command = part.complete(pattern=r"^{name}\s+{syntax}$", names=names) else: - command = part.complete(pattern=r"^!{name}$", names=names) + command = part.complete(pattern=r"^{name}$", names=names) self.register_conversation(command) return command