diff options
Diffstat (limited to 'src/git_config/mod.rs')
-rw-r--r-- | src/git_config/mod.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/git_config/mod.rs b/src/git_config/mod.rs index 454470f7..5e309666 100644 --- a/src/git_config/mod.rs +++ b/src/git_config/mod.rs @@ -80,8 +80,12 @@ fn parse_config_from_env_var() -> HashMap<String, String> { } lazy_static! { - static ref GIT_CONFIG_PARAMETERS_REGEX: Regex = - Regex::new(r"'(delta\.[a-z-]+)=([^']+)'").unwrap(); + static ref GIT_CONFIG_PARAMETERS_REGEX: Regex = Regex::new( + r"(?x) + '(delta\.[a-z-]+)=([^']+)' + " + ) + .unwrap(); } fn parse_config_from_env_var_value(s: &str) -> HashMap<String, String> { |