From 4b55e17c29ae720ec4a1a5c012df46891010d6c1 Mon Sep 17 00:00:00 2001 From: Tony Date: Tue, 13 Aug 2024 22:43:15 +0800 Subject: [PATCH] Fix file names containing spaces --- src/theme/NativeIdealImage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/theme/NativeIdealImage.tsx b/src/theme/NativeIdealImage.tsx index 75c6610..593a8d1 100644 --- a/src/theme/NativeIdealImage.tsx +++ b/src/theme/NativeIdealImage.tsx @@ -51,7 +51,7 @@ export default function NativeIdealImage(props: NativeIdealImageProps): JSX.Elem srcSet={ isSingleImage ? format.srcSet[0]!.path - : format.srcSet.map((image) => `${image.path} ${image.width}w`).join(',') + : format.srcSet.map((image) => `${encodeURI(image.path)} ${image.width}w`).join(',') } type={format.mime} key={format.mime}