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

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: default avatarArkadiusz Hiler <>
parent 97f5ba1b
......@@ -653,7 +653,7 @@ class SeriesRevision(models.Model):
return False
for index, name in enumerate(names):
match ="\[[^]]*(\d+)/(\d+).*\]", name)
match ="\[[^]]*?(\d+)/(\d+).*\]", name)
if not match: # we have a patch without proper numbering
return True
if (index + 1) != int( # 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