feat: unified attachment pipeline with clipboard image and file picker
Co-Authored-By: Ovis Fast (Claude) <[email protected]>
This commit is contained in:
1 parent
d63af25fc1
commit
761a80004a
7 files changed
+597
-57
No files matched your search
@@ -36,3 +36,15 @@ test("removeMention removes only the standalone token", () => {
|
||||
assert.equal(removeMention("see @src/a.rs now", "src/a.rs"), "see now");
|
||||
assert.equal(removeMention("see @src/a.rsx now", "src/a.rs"), "see @src/a.rsx now");
|
||||
});
|
||||
|
||||
test("mention and removeMention with a space and Polish letters in the path", () => {
|
||||
const path = "/home/zażółć/gęsia jaźń/ęą.png";
|
||||
assert.equal(mention(path), `@${path}`);
|
||||
assert.equal(removeMention(`zobacz @${path} proszę`, path), "zobacz proszę");
|
||||
assert.equal(removeMention(`@${path}`, path), "");
|
||||
});
|
||||
|
||||
test("removeMention leaves a mention glued to a Polish letter alone", () => {
|
||||
assert.equal(removeMention("@src/aę a", "src/a"), "@src/aę a");
|
||||
assert.equal(removeMention("ę@src/a", "src/a"), "ę@src/a");
|
||||
});
|
||||
Reference in new issue
Block a user