Commit 6e8e7cd0 authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

revison: Fix strangeness detection

The regexp breaks with patch series having more that 9 patches, because
'*' was a greedy qualifier, eating up every but the last digit of the
patch number. I have forgot to commit the extra '?' which makes it
non-greedy, making the whole thing behave as expected.
Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent 97f5ba1b
......@@ -653,7 +653,7 @@ class SeriesRevision(models.Model):
return False
for index, name in enumerate(names):
match = re.search(r"\[[^]]*(\d+)/(\d+).*\]", name)
match = re.search(r"\[[^]]*?(\d+)/(\d+).*\]", name)
if not match: # we have a patch without proper numbering
return True
if (index + 1) != int(match.group(1)): # numbering is off
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment