diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index 32e7fb46c..6dd76e74e 100755 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -160,7 +160,7 @@ class MatchCompiler: ret += ' ' + returnStatement # a|b|c - elif '|' in tok: + elif tok.find('|') > 0: tokens2 = tok.split('|') logicalOp = ' || ' if "" in tokens2: