summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-04-24 09:55:33 -0400
committerDan Davison <dandavison7@gmail.com>2021-04-24 09:59:25 -0400
commitadb61d15cb9f69554b9ce1ddc05ee63e86daff84 (patch)
tree3a8bd4a6f3db774fe1508be631df383e37a36b03
parent43ae361226abe951971eee477714f76acb5be6ab (diff)
Use verbose regex style
-rw-r--r--src/git_config/mod.rs8
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> {