make support for equal sign in value string
This commit is contained in:
parent
9ef23af0fd
commit
ecf73351ae
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ fn extract_tb_config(content: String) -> HashMap<String, String> {
|
|||
let lines = content.lines();
|
||||
|
||||
for line in lines {
|
||||
let parts: Vec<&str> = line.split('=').collect();
|
||||
let parts: Vec<String> = line.split_once("=").map(|x| vec![x.0.to_string(), x.1.to_string()]).unwrap_or(Vec::new());
|
||||
if parts.len() == 2 {
|
||||
result.insert(parts[0].trim().to_string(), parts[1].trim().to_string());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue