Skip to content

Commit 78ed284

Browse files
committed
fix: correct version-matching regex
1 parent 83e3207 commit 78ed284

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function parseRepository(value: string): Either<TargetBinary> {
3434
return error(errors);
3535
}
3636

37-
const regex = /^(\S+)\/(\S+)@v(\S+)$/;
37+
const regex = /^(\S+)\/(\S+)@(v\S+)$/;
3838
const match = value.match(regex);
3939
if (match === null || match.length !== 4) {
4040
return error([

0 commit comments

Comments
 (0)