mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix documentation misformat in salt.states.file.replace
This commit is contained in:
parent
d385dfd19d
commit
246a2b3e74
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue