From c221b6ecf9eb752256c383199c177815f42f2c60 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Fri, 20 Jun 2025 09:34:25 +0200 Subject: [PATCH] refactor matchRemotePattern --- packages/cloudflare/src/cli/templates/images.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 {