Mercurial > kallithea
changeset 7793:708f1a55f174
vcs: fix regexp with nested [] - the outer one was apparently supposed to just do grouping
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 21 Jul 2019 19:03:30 +0200 |
parents | bb1154b80789 |
children | 62659d3824a0 |
files | kallithea/lib/vcs/backends/git/repository.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/vcs/backends/git/repository.py Sun Jul 21 23:26:24 2019 +0200 +++ b/kallithea/lib/vcs/backends/git/repository.py Sun Jul 21 19:03:30 2019 +0200 @@ -43,7 +43,7 @@ from .inmemory import GitInMemoryChangeset from .workdir import GitWorkdir -SHA_PATTERN = re.compile(r'^[[0-9a-fA-F]{12}|[0-9a-fA-F]{40}]$') +SHA_PATTERN = re.compile(r'^([0-9a-fA-F]{12}|[0-9a-fA-F]{40})$') log = logging.getLogger(__name__)