Changeset - 708f1a55f174
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2019-07-21 19:03:30
mads@kiilerich.com
vcs: fix regexp with nested [] - the outer one was apparently supposed to just do grouping
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/vcs/backends/git/repository.py
Show inline comments
 
@@ -43,7 +43,7 @@ from .changeset import GitChangeset
 
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__)
 

	
0 comments (0 inline, 0 general)