document and use regex line terminator characters

This commit is contained in:
Manuel Barkhau 2022-07-01 22:55:00 +00:00
parent 0fb3f5a88a
commit eb0e282a69
2 changed files with 4 additions and 4 deletions

View file

@ -118,9 +118,9 @@ version_pattern = "MAJOR.MINOR.PATCH"
[bumpver:file_patterns]
setup.py
version="{version}",
version="{version}",$
src/mymodule/__init__.py
__version__ = "{version}"
^__version__ = "{version}"$
```
Using this configuration, the output of `bumpver update --dry` might look something like this: