Files
openclaw/src/media
xydt-lcy e0df20b0b3 fix(media): normalizeMediaSource should handle uppercase FILE:// URI schemes (#103490)
* fix: normalizeMediaSource should handle uppercase FILE:// URI schemes

URI schemes are case-insensitive per RFC 3986. normalizeMediaSource
only matched lowercase 'file://', so MEDIA:FILE:///tmp/generated.png
was left in assistant text instead of being extracted as a local
media attachment.

Replaced startsWith + replace with a case-insensitive regex to handle
FILE://, file://, and any mixed-case variant.

Fixes #103473

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* fix(media): handle spaced uppercase file URLs

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-07-10 16:43:00 +01:00
..
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00
2026-06-04 20:05:16 -04:00