mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Merge pull request #3282 from padelt/develop
Docs: file.comment actually needs the leading ^
This commit is contained in:
commit
3e3d64ac93
@ -1280,6 +1280,8 @@ def comment(name, regex, char='#', backup='.bak'):
|
||||
this pattern will be wrapped in parenthesis and will move any
|
||||
preceding/trailing ``^`` or ``$`` characters outside the parenthesis
|
||||
(e.g., the pattern ``^foo$`` will be rewritten as ``^(foo)$``)
|
||||
Note that you _need_ the leading ^, otherwise each time you run highstate,
|
||||
another comment char will be inserted.
|
||||
char : ``#``
|
||||
The character to be inserted at the beginning of a line in order to
|
||||
comment it out
|
||||
|
Loading…
Reference in New Issue
Block a user