Skip to content

Commit

Permalink
Address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wirednkod committed Oct 6, 2023
1 parent e8be448 commit 79a0355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/configuration/src/shared/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl<'de> de::Visitor<'de> for ArgVisitor {
{
// covers the "-lruntime=debug,parachain=trace" case
// TODO: Make this more generic by adding the scenario in the regex below
if (v.starts_with("-l") || v.starts_with("-log")) && v.contains(',') {
if v.starts_with("-l") || v.starts_with("-log") {
return Ok(Arg::Flag(v.to_string()));
}
let re = Regex::new("^(?<name_prefix>(?<prefix>-{1,2})(?<name>[a-zA-Z]+(-[a-zA-Z]+)*))((?<separator>=| )(?<value>.+))?$").unwrap();
Expand Down

0 comments on commit 79a0355

Please sign in to comment.