Skip to content

Commit 158e20b

Browse files
authored
refactor matchRemotePattern (#742)
1 parent d8150d2 commit 158e20b

File tree

1 file changed

+1
-5
lines changed
  • packages/cloudflare/src/cli/templates

1 file changed

+1
-5
lines changed

packages/cloudflare/src/cli/templates/images.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ export function matchRemotePattern(pattern: RemotePattern, url: URL): boolean {
9494
}
9595

9696
// Should be the same as writeImagesManifest()
97-
if (!new RegExp(pattern.pathname).test(url.pathname)) {
98-
return false;
99-
}
100-
101-
return true;
97+
return new RegExp(pattern.pathname).test(url.pathname);
10298
}
10399

104100
export function matchLocalPattern(pattern: LocalPattern, url: URL): boolean {

0 commit comments

Comments
 (0)