Fix #7210 (Compiled match versus parsed match "|a|b")
This commit is contained in:
parent
392cda8bce
commit
e0e8c3fe60
|
@ -157,7 +157,7 @@ class MatchCompiler:
|
||||||
ret += ' ' + returnStatement
|
ret += ' ' + returnStatement
|
||||||
|
|
||||||
# a|b|c
|
# a|b|c
|
||||||
elif tok.find('|') > 0:
|
elif tok.find('|') >= 0 and tok != '||' and tok != '|' and tok != '|=':
|
||||||
tokens2 = tok.split('|')
|
tokens2 = tok.split('|')
|
||||||
logicalOp = None
|
logicalOp = None
|
||||||
neg = None
|
neg = None
|
||||||
|
|
Loading…
Reference in New Issue