saltstack/salt — pull request #3126 by djs52 (2013-01-03 11:24:27+00:00)
Title: Small fixes to file.sed

The file.sed state checks the file to see if the "after" string is present. However, it treats the string as a regular expression, so fails to match if it contains any regular expression characters.

This pull request also fixes the file.contains module function, which was trying to match the entire retrieved chunk against the search string, rather than searching for the search string.