Mercurial > hg
view contrib/python3-whitelist @ 33357:a21819f439fe
match: remove unnecessary '^' from regexes
The regexes are passed to re.match(), which matches against the
beginning of the input, so the '^' doesn't do anything.
Note that unrooted patterns, such as globs and regexes from .hgignore
are instead achieved by adding '.*' to the expression given by the
user. (That's unless the user's expression started with '^', in which
case the '.*' is not added, perhaps to keep the regex cleaner?)
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 09 Jul 2017 22:53:02 -0700 |
parents | aaa1f8f514cf |
children | 0e114b992e02 |
line wrap: on
line source
test-ancestor.py test-backwards-remove.t test-branch-tag-confict.t test-casecollision.t test-check-commit.t test-check-execute.t test-check-pyflakes.t test-check-pylint.t test-check-shbang.t test-contrib-check-code.t test-contrib-check-commit.t test-ctxmanager.py test-diff-issue2761.t test-diff-newlines.t test-diff-reverse.t test-diff-subdir.t test-dirstate-nonnormalset.t test-doctest.py test-empty-dir.t test-excessive-merge.t test-issue1089.t test-issue1993.t test-issue842.t test-locate.t test-lrucachedict.py test-manifest.py test-merge-default.t test-merge-subrepos.t test-merge2.t test-merge5.t test-revlog-packentry.t test-run-tests.py test-unified-test.t test-update-reverse.t test-xdg.t