From ecd0fd499205cde2da1bfd11d6050d26ce71671d Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 14 Feb 2011 16:55:53 -0700 Subject: Match any number of leading spaces in config values The regex comments state that any number of leading tabs or spaces should be allowed, however the regex was only catching zero or one space. This allows multiple spaces. --- git/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/config.py') diff --git a/git/config.py b/git/config.py index f1a8832e..209f2ffe 100644 --- a/git/config.py +++ b/git/config.py @@ -124,7 +124,7 @@ class GitConfigParser(cp.RawConfigParser, object): #} END configuration OPTCRE = re.compile( - r'\s?(?P