Skip to content

Commit b4ddddb

Browse files
authored
Update version_match regex to handle alternative pre-release semantic (#67)
1 parent 2f7ebc9 commit b4ddddb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cadet/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def _get_cadet_version(self) -> dict:
209209
version_output = result.stdout.strip()
210210

211211
version_match = re.search(
212-
r'This is cadet-cli version ([\w.]+) \((.*) branch\)',
212+
r'This is cadet-cli version ([\w.-]+) (\(.*branch\))',
213213
version_output
214214
)
215215

0 commit comments

Comments
 (0)