krimdomu/Rex — pull request #79 by mdom (2012-11-21 17:53:18+00:00)
Title: Unwrapped double looping over files and regexes and adding $new_line if not present in absence of regexes

Hi, i had a lot of repeated configuration where i just wanted to append a line to a file if it wasn't present already. This resulted in a lot of copying $new_line as the one and only regexp. The diff adds code that use $new_line as regexp if no other @regexps are supplied. It should also run faster for big files or a lot of regexps by not checking all regexps for all lines . That shouldn't change any semantics but this definitely needs some testing. Seems okay here.

Cheers, Mario