mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
match: fix bug caused by refactoring in fb457d08da0b
This commit is contained in:
parent
c1d402dc5f
commit
aa36fb062f
@ -282,8 +282,8 @@ def _buildregexmatch(pats, tail):
|
||||
l = len(pats)
|
||||
if l < 2:
|
||||
raise
|
||||
pata, a = _buildmatch(pats[:l//2], tail)
|
||||
patb, b = _buildmatch(pats[l//2:], tail)
|
||||
pata, a = _buildregexmatch(pats[:l//2], tail)
|
||||
patb, b = _buildregexmatch(pats[l//2:], tail)
|
||||
return pat, lambda s: a(s) or b(s)
|
||||
except re.error:
|
||||
for k, p in pats:
|
||||
|
Loading…
Reference in New Issue
Block a user