Previous implementation only matched if *every* regexp matched *every*
string. Current implementation matches is *any* regexp matches *any*
string.
if len(self.extra_strings_regexps) > 0:
return False
else:
+ matched = False
for string in bug.extra_strings:
for regexp in self.extra_strings_regexps:
- if not regexp.match(string):
- return False
+ if regexp.match(string):
+ matched = True
+ break
+ if matched == True:
+ break
+ if matched == False:
+ return False
return True
class List (libbe.command.Command):