diff options
-rw-r--r-- | wintest/wintest.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wintest/wintest.py b/wintest/wintest.py index cc24c0d22a..201ed089e2 100644 --- a/wintest/wintest.py +++ b/wintest/wintest.py @@ -231,7 +231,12 @@ class wintest(): def expect_sub(line, timeout=ret.timeout, casefold=casefold): line = self.substitute(line) if casefold: - line = "(?i)" + line + if isinstance(line, list): + for i in range(len(line)): + if isinstance(line[i], str): + line[i] = '(?i)' + line[i] + elif isinstance(line, str): + line = '(?i)' + line return ret.old_expect(line, timeout=timeout) ret.old_sendline = ret.sendline |