Skip to content

Commit 11785de

Browse files
committed
Fixing version match pattern
1 parent c530cf4 commit 11785de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nunavut/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def _fail_on_mismatch(tag: str, tag_triplet_pattern: str) -> None: # pragma: no
5555
parser.add_argument("--tag", help="A manually provided git tag. Overrides --git.")
5656
parser.add_argument(
5757
"--tag-triplet-pattern",
58-
default=r"v(\d+\.\d+\.\d+\.\S+)",
58+
default=r"v?(\d+\.\d+\.\d+\.\S+)",
5959
help="A regex pattern to extract the version from the git tag.",
6060
)
6161
parser.add_argument(

0 commit comments

Comments
 (0)