##// END OF EJS Templates
tests: ensure regexes match to the end of the string...
Brodie Rao -
r12374:4e7dd28d default
parent child Browse files
Show More
@@ -506,7 +506,8 b' def tsttest(test, options):'
506 506 # hack to deal with graphlog, which looks like bogus regexes
507 507 if el.startswith('|'):
508 508 el = '\\' + el
509 return re.match(el, l)
509 # ensure that the regex matches to the end of the string
510 return re.match(el + r'\Z', l)
510 511 except re.error:
511 512 # el is an invalid regex
512 513 return False
General Comments 0
You need to be logged in to leave comments. Login now