aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-09-12 13:01:59 +0900
committernsfisis <nsfisis@gmail.com>2026-09-12 13:01:59 +0900
commit82f2204fc8e2c21d0d58733931a12e883db46749 (patch)
tree89bba51f044d83a92a2b3bea01a658f8aaf1168c /crates/shirabe
parentdae53fa80ef757fecbb6f6eb22e12146b391e6d1 (diff)
downloadphp-shirabe-main.tar.gz
php-shirabe-main.tar.zst
php-shirabe-main.zip
fix(factory): fix path processingHEADmain
Diffstat (limited to 'crates/shirabe')
-rw-r--r--crates/shirabe/src/factory.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/shirabe/src/factory.rs b/crates/shirabe/src/factory.rs
index 8c696b1f..47b203f0 100644
--- a/crates/shirabe/src/factory.rs
+++ b/crates/shirabe/src/factory.rs
@@ -113,7 +113,7 @@ impl Factory {
let appdata = Platform::get_env("APPDATA").unwrap_or_default();
return Ok(format!(
"{}/Shirabe",
- trim(&strtr(&appdata, "\\", "/"), Some("/"))
+ rtrim(&strtr(&appdata, "\\", "/"), Some("/"))
));
}
@@ -162,7 +162,7 @@ impl Factory {
cache_dir = format!("{}/cache", home);
}
- return Ok(trim(&strtr(&cache_dir, "\\", "/"), Some("/")));
+ return Ok(rtrim(&strtr(&cache_dir, "\\", "/"), Some("/")));
}
let user_dir = Self::get_user_dir()?;
@@ -1579,7 +1579,7 @@ impl Factory {
.to_string()).into());
}
- Ok(trim(&strtr(&home, "\\", "/"), Some("/")))
+ Ok(rtrim(&strtr(&home, "\\", "/"), Some("/")))
}
fn validate_json_schema(