diff --git a/src/types/vec_string.rs b/src/types/vec_string.rs index 4675c0813..6abbc459c 100644 --- a/src/types/vec_string.rs +++ b/src/types/vec_string.rs @@ -11,6 +11,9 @@ impl std::str::FromStr for VecString { type Err = color_eyre::eyre::ErrReport; fn from_str(s: &str) -> Result { + if s.is_empty() { + return Ok(Self(vec![])); + } let vec_str: Vec = s.split(',').map(|str| str.trim().to_string()).collect(); Ok(Self(vec_str)) }