From adb61d15cb9f69554b9ce1ddc05ee63e86daff84 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Sat, 24 Apr 2021 09:55:33 -0400 Subject: Use verbose regex style --- src/git_config/mod.rs | 8 ++++++-- 1 file 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 { } 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 { -- cgit v1.2.3