Skip to content

Commit 1a7edd5

Browse files
Int: fix regex matching pattern in pyproject.toml (#406)
# The problem Regex of version matching didnt catch pre-release tag versions # This PR's solution Correct regex expression # Checklist _Check that this PR satisfies the following items:_ - [x] Tests have been added for new features/changed behavior (if no new features have been added, check the box). - [x] The [changelog file](CHANGELOG.md) has been updated with a user-readable description of the changes (if the change isn't visible to the user in any way, check the box). - [x] The PR's title is prefixed with `<feat/fix/chore/imp[rovement]/int[ernal]/docs>[!]:` - [x] The PR is linked to a JIRA ticket (if there's no suitable ticket, check the box).
1 parent 2e059f4 commit 1a7edd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/orquestra-sdk/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ packages = ["src/orquestra"]
135135

136136
[tool.hatch.version]
137137
source = "vcs"
138-
tag-pattern = "^(?P<prefix>orquestra-sdk-)(?P<version>[vV]?\\d+\\.\\d+\\.\\d+)(?P<suffix>.*)?$"
138+
tag-pattern = "^(?P<prefix>orquestra-sdk-)(?P<version>[vV]?\\d+(?:\\.\\d+){0,2}[^\\+]*)(?:\\+.*)?$"
139139

140140
[tool.hatch.version.raw-options]
141141
root = "../.."

0 commit comments

Comments
 (0)