Match compiler: Allow multiple spaces / no space at all when searching for C-strings

This catches 32 more C strings.
This commit is contained in:
Thomas Jarosch 2015-01-09 01:14:29 +01:00
parent 374af15bd4
commit 07231c832c
1 changed files with 2 additions and 2 deletions

View File

@ -569,9 +569,9 @@ class MatchCompiler:
def _replaceCStrings(self, line): def _replaceCStrings(self, line):
while True: while True:
match = re.search('str\(\) (==|!=) "', line) match = re.search('str\(\) *(==|!=) *"', line)
if not match: if not match:
match = re.search('strAt\(.+?\) (==|!=) "', line) match = re.search('strAt\(.+?\) *(==|!=) *"', line)
if not match: if not match:
break break