mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 08:13:08 +00:00
* using a _named_ capture in our assembled pattern, since before/after could potentially contain their own parenthesized captures * ensuring we only replace against the named capture in question * removing some duplication in the regexp replacement, that was introduced in ansible/ansible#22535 * fixed edge case of before/after not matching file content to replace Fixes ansible/ansible#24840