Skip to content

Commit

Permalink
Match compiler: Allow multiple spaces / no space at all when searchin…
Browse files Browse the repository at this point in the history
…g for C-strings

This catches 32 more C strings.
  • Loading branch information
thomasjfox committed Jan 9, 2015
1 parent 374af15 commit 07231c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/matchcompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,9 +569,9 @@ def _replaceTokenFindMatch(self, line):

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

Expand Down

0 comments on commit 07231c8

Please sign in to comment.