match more than one code in -x with a regex

pull/21/head
lanjelot 9 years ago
parent f6de99e33e
commit 0b2ad0dc5e

@ -2016,7 +2016,7 @@ class Response_Base:
return getattr(self, 'match_'+key)(val)
def match_code(self, val):
return val == str(self.code)
return re.match('%s$' % val, str(self.code))
def match_size(self, val):
return match_range(self.size, val)

Loading…
Cancel
Save