Skip to content

Commit ca802ab

Browse files
committed
feat: allow 5-digit port numbers
1 parent db52ba8 commit ca802ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if (!program.target) {
5757
}
5858

5959
const targetPortMatch = (program.target as string).match(
60-
/\w+:\/\/[\w.-]+:(\d{1,4})(\/|$)/,
60+
/\w+:\/\/[\w.-]+:(\d{1,5})(\/|$)/,
6161
);
6262
const targetPort: string = targetPortMatch !== null ? targetPortMatch[1] : '';
6363

0 commit comments

Comments
 (0)