Merge pull request #42408 from CorvinM/file-replace-doc-fix

Fix documentation misformat in salt.states.file.replace
This commit is contained in:
Nicole Thomas 2017-07-19 18:45:42 -06:00 committed by GitHub
commit a71938cefe

View file

@ -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 }}