mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
fix(media): accept mixed-case local file URLs (#121226)
This commit is contained in:
committed by
GitHub
parent
727e48240b
commit
3bdfd60caa
@@ -115,6 +115,29 @@ describe("detectChangedScope Windows routing", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("routes web and Teams file URL handling to Windows", () => {
|
||||
for (const fileUrlPath of [
|
||||
"src/media/local-media-path.ts",
|
||||
"src/media/local-media-path.windows.test.ts",
|
||||
"src/media/local-roots.ts",
|
||||
"src/media/local-roots.test.ts",
|
||||
"src/media/web-media.ts",
|
||||
"src/media/web-media.file-url.windows.test.ts",
|
||||
"src/channels/inbound-event/media.ts",
|
||||
"src/channels/inbound-event/media.test.ts",
|
||||
"src/gateway/managed-image-attachments.ts",
|
||||
"src/gateway/managed-image-attachments.test.ts",
|
||||
"extensions/msteams/src/media-helpers.ts",
|
||||
"extensions/msteams/src/media-helpers.test.ts",
|
||||
"extensions/msteams/src/messenger.test.ts",
|
||||
]) {
|
||||
expect(detectChangedScope([fileUrlPath]), fileUrlPath).toMatchObject({
|
||||
runNode: true,
|
||||
runWindows: true,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
it("routes SecretRef path-security changes and native fixtures to Windows", () => {
|
||||
for (const secretRefPath of [
|
||||
"src/commands/doctor-gateway-auth-token.ts",
|
||||
|
||||
Reference in New Issue
Block a user