🤖 codex: preserve spacing after inline directives (issue-telegram-inline-spacing)
This commit is contained in:
committed by
Peter Steinberger
parent
4e92ccc0dd
commit
43545a4864
@@ -107,6 +107,12 @@ describe("extractModelDirective", () => {
|
||||
});
|
||||
|
||||
describe("edge cases", () => {
|
||||
it("preserves spacing when /model is followed by a path segment", () => {
|
||||
const result = extractModelDirective("thats not /model gpt-5/tmp/hello");
|
||||
expect(result.hasDirective).toBe(true);
|
||||
expect(result.cleaned).toBe("thats not /hello");
|
||||
});
|
||||
|
||||
it("handles alias with special regex characters", () => {
|
||||
const result = extractModelDirective("/test.alias", {
|
||||
aliases: ["test.alias"],
|
||||
|
||||
Reference in New Issue
Block a user