Change pattern match to not require that the matching string start at the beginning of a line. Reviewed-by: dcubed, dholmes