mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
parent
ceb573f337
commit
d24f64a4f0
1 changed files with 2 additions and 1 deletions
|
@ -216,7 +216,8 @@ If both ``prefix`` and ``from_pattern``/``to_pattern`` are used,
|
|||
``from_pattern``/``to_pattern`` are ignored. If you want to strip the prefix
|
||||
and then do something special, just use ``from_pattern```/``to_pattern``. For
|
||||
example, the transformation of ``v1_1_0`` => ``1.1.0`` can be achieved with
|
||||
``from_pattern = v(\d+)_(\d+)_(\d+)`` and ``to_pattern = \1.\2.\3``.
|
||||
``from_pattern = 'v(\d+)_(\d+)_(\d+)'`` and ``to_pattern = '\1.\2.\3'``.
|
||||
(Note that in TOML it's easiler to write regexes in single quotes so you don't need to escape ``\\``.)
|
||||
|
||||
.. _list options:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue