comparison .hgtags @ 35155:6d5718e39657

run-tests: make "| foo (re)" not match everything We make "foo (re)" match the entire line by adding a \Z to the regular expression before matching. However, that doesn't help when the regular expression is something like "| foo", because that gets translated to "| foo\Z", where the "|" has lower precedence and it thus matches the empty string, which is of course a prefix of every string. Fix by wrapping expression in a group before adding the \Z to the end. Differential Revision: https://phab.mercurial-scm.org/D1546
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 29 Nov 2017 10:34:49 -0800
parents 929bf8390056
children b9a0d9aa7a37
comparison
equal deleted inserted replaced
35154:4c04fd032af6 35155:6d5718e39657