mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix documentation misformat in salt.states.file.replace
This commit is contained in:
parent
d385dfd19d
commit
246a2b3e74
@ -3797,12 +3797,13 @@ def replace(name,
|
||||
A regular expression, to be matched using Python's
|
||||
:py:func:`~re.search`.
|
||||
|
||||
..note::
|
||||
.. note::
|
||||
|
||||
If you need to match a literal string that contains regex special
|
||||
characters, you may want to use salt's custom Jinja filter,
|
||||
``escape_regex``.
|
||||
|
||||
..code-block:: jinja
|
||||
.. code-block:: jinja
|
||||
|
||||
{{ 'http://example.com?foo=bar%20baz' | escape_regex }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user