diff --git a/packages/cloudflare/src/cli/templates/images.ts b/packages/cloudflare/src/cli/templates/images.ts index 7c9f4f58..ebd464dd 100644 --- a/packages/cloudflare/src/cli/templates/images.ts +++ b/packages/cloudflare/src/cli/templates/images.ts @@ -94,11 +94,7 @@ export function matchRemotePattern(pattern: RemotePattern, url: URL): boolean { } // Should be the same as writeImagesManifest() - if (!new RegExp(pattern.pathname).test(url.pathname)) { - return false; - } - - return true; + return new RegExp(pattern.pathname).test(url.pathname); } export function matchLocalPattern(pattern: LocalPattern, url: URL): boolean {