From ecf73351aeecd381f4234d18a913d36faca65e6a Mon Sep 17 00:00:00 2001 From: Pakin Date: Fri, 9 Jan 2026 09:38:33 +0700 Subject: [PATCH] make support for equal sign in value string --- src/recipe_functions/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/recipe_functions/common.rs b/src/recipe_functions/common.rs index 1ec2f26..d8c8d8d 100644 --- a/src/recipe_functions/common.rs +++ b/src/recipe_functions/common.rs @@ -18,7 +18,7 @@ fn extract_tb_config(content: String) -> HashMap { let lines = content.lines(); for line in lines { - let parts: Vec<&str> = line.split('=').collect(); + let parts: Vec = 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()); }