ansible/docs/docsite/rst/porting_guides
Sam Doran 0fa56ed65d Add warning when using an empty regexp in lineinfile (#42013) (#42207)
* Revert "Account for empty string regexp in lineinfile (#41451)"

This reverts commit 4b5b4a760c.

* Use context managers for interacting with files

* Store line and regexp parameters in a variable

* Add warning when regexp is an empty string

* Remove '=' from error messages

* Update warning message and add changelog

* Add tests

* Improve warning message

Offer an equivalent regexp that won't trigger the warning.
Update tests to match new warning.

* Add porting guide entry for lineinfile change

(cherry picked from commit fb55038d75)
2018-07-05 09:41:07 -07:00
..
porting_guide_2.0.rst Doc build warning/broken link clean-a-palooza (#37382) (#38185) 2018-04-02 11:53:24 -07:00
porting_guide_2.3.rst Fix places in docs that refer to modules without namespace 2018-04-18 08:48:41 -07:00
porting_guide_2.4.rst Fix places in docs that refer to modules without namespace 2018-04-18 08:48:41 -07:00
porting_guide_2.5.rst Add warning when using an empty regexp in lineinfile (#42013) (#42207) 2018-07-05 09:41:07 -07:00
porting_guides.rst Core Docs Refactor and Redesign (#36067) 2018-02-13 11:00:31 -08:00