fix: improve regex for version parsing in bumpversion configuration

This commit is contained in:
Kamil
2025-02-11 09:25:32 +00:00
parent bb195b1c77
commit bf725c6b24

View File

@@ -4,9 +4,9 @@ commit = True
tag = True tag = True
[bumpversion:file:app/version.py] [bumpversion:file:app/version.py]
search = __version__ = "(?P<current_version>v\d+\.\d+\.\d+)" search = ^__version__\s*=\s*"(?P<current_version>v\d+\.\d+\.\d+)"$
replace = __version__ = "{new_version}" replace = __version__ = "{new_version}"
[bumpversion:file:version.py] [bumpversion:file:version.py]
search = __version__ = "(?P<current_version>v\d+\.\d+\.\d+)" search = ^__version__\s*=\s*"(?P<current_version>v\d+\.\d+\.\d+)"$
replace = __version__ = "{new_version}" replace = __version__ = "{new_version}"