mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 20:24:33 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -125,8 +125,8 @@ describe("detectImageReferences", () => {
|
||||
it("detects multiple images in [media attached: ...] format", () => {
|
||||
// Multi-file format uses separate brackets on separate lines
|
||||
const prompt = `[media attached: 2 files]
|
||||
[media attached 1/2: /Users/tyleryust/.clawdbot/media/IMG_6430.jpeg (image/jpeg)]
|
||||
[media attached 2/2: /Users/tyleryust/.clawdbot/media/IMG_6431.jpeg (image/jpeg)]
|
||||
[media attached 1/2: /Users/tyleryust/.openclaw/media/IMG_6430.jpeg (image/jpeg)]
|
||||
[media attached 2/2: /Users/tyleryust/.openclaw/media/IMG_6431.jpeg (image/jpeg)]
|
||||
what about these images?`;
|
||||
const refs = detectImageReferences(prompt);
|
||||
|
||||
@@ -165,7 +165,7 @@ what is this?`;
|
||||
|
||||
it("handles paths with spaces in filename", () => {
|
||||
// URL after | is https, not a local path, so only the local path should be detected
|
||||
const prompt = `[media attached: /Users/test/.clawdbot/media/ChatGPT Image Apr 21, 2025.png (image/png) | https://example.com/same.png]
|
||||
const prompt = `[media attached: /Users/test/.openclaw/media/ChatGPT Image Apr 21, 2025.png (image/png) | https://example.com/same.png]
|
||||
what is this?`;
|
||||
const refs = detectImageReferences(prompt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user