Ensure error patterns match only full lines (fixes #12)