Skip to content

Commit 6677c0a

Browse files
anisaoshafiskyrpex
andauthored
Update src/utils/configure-aws.ts
Co-authored-by: Cristian Pallarés <[email protected]>
1 parent 8ceae9b commit 6677c0a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/configure-aws.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ function isValidEndpointUrl(url: string | undefined): boolean {
5757
return (
5858
(parsed.protocol === "http:" || parsed.protocol === "https:") &&
5959
VALID_HOSTNAMES.includes(parsed.hostname) &&
60-
parsed.port !== "" && // port must be present
61-
(parsed.port === DEFAULT_PORT || /^\d+$/.test(parsed.port))
60+
parsed.port // port must be present
6261
);
6362
} catch {
6463
return false;

0 commit comments

Comments
 (0)