fix: relax slash command parsing

This commit is contained in:
Peter Steinberger committed 2026-01-08 03:24:18 +01:00
1 parent 36b443f4f3
commit ad5c87c193
18 files changed
+226 -31

No files matched your search

+2
View File
@@ -23,7 +23,9 @@ describe("commands registry", () => {
const detection = getCommandDetection();
expect(detection.exact.has("/help")).toBe(true);
expect(detection.regex.test("/status")).toBe(true);
expect(detection.regex.test("/status:")).toBe(true);
expect(detection.regex.test("/stop")).toBe(true);
expect(detection.regex.test("/send:")).toBe(true);
expect(detection.regex.test("try /status")).toBe(false);
});