Merge "abandon_stale: Allow singular form of age parameter"
This commit is contained in:
commit
fd4de86f08
@ -101,7 +101,7 @@ def _main():
|
||||
logging.error("Gerrit URL is required")
|
||||
return 1
|
||||
|
||||
pattern = re.compile(r"^([\d]+)(months|years|weeks)")
|
||||
pattern = re.compile(r"^([\d]+)(month[s]?|year[s]?|week[s]?)")
|
||||
match = pattern.match(options.age)
|
||||
if not match:
|
||||
logging.error("Invalid age: %s", options.age)
|
||||
|
Loading…
x
Reference in New Issue
Block a user