From 4bd2bcbfe14c0d35a46c42c03a89384f54bcd06b Mon Sep 17 00:00:00 2001 From: erkelost <1256029807@qq.com> Date: Mon, 14 Oct 2024 12:26:13 +0800 Subject: [PATCH] chore: update rust test error --- crates/toolkit/src/resolve/path_start_with_alias.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/toolkit/src/resolve/path_start_with_alias.rs b/crates/toolkit/src/resolve/path_start_with_alias.rs index 002fcec80..51f5b6c16 100644 --- a/crates/toolkit/src/resolve/path_start_with_alias.rs +++ b/crates/toolkit/src/resolve/path_start_with_alias.rs @@ -71,7 +71,7 @@ mod test { replacement: cwd.to_string_lossy().to_string(), }, AliasItem::Complex { - find: StringOrRegex::String("react$".to_string()), + find: StringOrRegex::Regex(Regex::new("react$").unwrap()), replacement: cwd.to_string_lossy().to_string(), }, AliasItem::Complex {