@steerable/agent-shell-tauri 0.6.44 → 0.6.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/host.rs +2 -2
package/package.json
CHANGED
package/src/host.rs
CHANGED
|
@@ -287,13 +287,13 @@ fn node_compatible_path(path: &Path) -> PathBuf {
|
|
|
287
287
|
|
|
288
288
|
let wide = path.as_os_str().encode_wide().collect::<Vec<_>>();
|
|
289
289
|
let verbatim_unc = r"\\?\UNC\".encode_utf16().collect::<Vec<_>>();
|
|
290
|
-
if let Some(rest) = wide.strip_prefix(
|
|
290
|
+
if let Some(rest) = wide.strip_prefix(verbatim_unc.as_slice()) {
|
|
291
291
|
let mut normalized = r"\\".encode_utf16().collect::<Vec<_>>();
|
|
292
292
|
normalized.extend_from_slice(rest);
|
|
293
293
|
return PathBuf::from(OsString::from_wide(&normalized));
|
|
294
294
|
}
|
|
295
295
|
let verbatim = r"\\?\".encode_utf16().collect::<Vec<_>>();
|
|
296
|
-
if let Some(rest) = wide.strip_prefix(
|
|
296
|
+
if let Some(rest) = wide.strip_prefix(verbatim.as_slice()) {
|
|
297
297
|
return PathBuf::from(OsString::from_wide(rest));
|
|
298
298
|
}
|
|
299
299
|
}
|