fix: relax slash command parsing
This commit is contained in:
1 parent
36b443f4f3
commit
ad5c87c193
18 files changed
+226
-31
No files matched your search
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user