fix: require slash for control commands

This commit is contained in:
Peter Steinberger committed 2026-01-06 07:05:17 +01:00
1 parent 7d896b5f67
commit b5c604b7b7
6 files changed
+41 -24

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ export function parseActivationCommand(raw?: string): {
if (!raw) return { hasCommand: false };
const trimmed = raw.trim();
if (!trimmed) return { hasCommand: false };
const match = trimmed.match(/^\/?activation\b(?:\s+([a-zA-Z]+))?/i);
const match = trimmed.match(/^\/activation\b(?:\s+([a-zA-Z]+))?/i);
if (!match) return { hasCommand: false };
const mode = normalizeGroupActivation(match[1]);
return { hasCommand: true, mode };