remove regex chars: ^ and $ during replacement

This commit is contained in:
Manuel Barkhau 2022-07-01 22:34:59 +00:00
parent 023f9bffcd
commit fa6d48fd9f
3 changed files with 12 additions and 1 deletions

View file

@ -39,7 +39,6 @@ def test_bump_final_v1():
def test_bump_final_v2():
print()
raw_pattern = "vMAJOR.MINOR.PATCH[PYTAGNUM]"
cur_version = "v0.1.4b1"
assert v2version.incr(cur_version, raw_pattern, major=True ) == "v1.0.0b0"