diff --git a/modules/commands/alternatives/wx_international.py b/modules/commands/alternatives/wx_international.py index a019ee0..2f7aad1 100644 --- a/modules/commands/alternatives/wx_international.py +++ b/modules/commands/alternatives/wx_international.py @@ -85,7 +85,7 @@ class GlobalWxCommand(BaseCommand): content = content[1:].strip() content_lower = content.lower() for keyword in self.keywords: - if content_lower.startswith(keyword + ' '): + if content_lower.startswith(keyword + ' ') or content_lower == keyword: return True return False diff --git a/modules/commands/wx_command.py b/modules/commands/wx_command.py index f06c27d..f8b9b08 100644 --- a/modules/commands/wx_command.py +++ b/modules/commands/wx_command.py @@ -124,7 +124,7 @@ class WxCommand(BaseCommand): content = content[1:].strip() content_lower = content.lower() for keyword in self.keywords: - if content_lower.startswith(keyword + ' '): + if content_lower.startswith(keyword + ' ') or content_lower == keyword: return True return False