diff --git a/src/index.tsx b/src/index.tsx index 35086ce..b9a7c9e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -26,7 +26,7 @@ export class ImageCache { private getPath(uri: string, immutable?: boolean): string { let path = uri.substring(uri.lastIndexOf("/")); path = path.indexOf("?") === -1 ? path : path.substring(path.lastIndexOf("."), path.indexOf("?")); - const ext = path.indexOf(".") === -1 ? ".jpg" : path.substring(path.indexOf(".")); + const ext = path.indexOf(".") === -1 ? ".jpg" : path.substring(path.indexOf(".")).replace(':', '_'); if (immutable === true) { return BASE_DIR + "/" + SHA1(uri) + ext; } else {