fix: replace deprecated str downcase/upcase with str lowercase/uppercase

This commit is contained in:
2026-07-20 15:33:05 +08:00
parent cc1aab33a3
commit 427fa547a6
3 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -42,7 +42,7 @@ export-env {
#
def _pj_normalize_windows_drive [path: string] {
if (($nu.os-info.name | str downcase) != "windows") {
if (($nu.os-info.name | str lowercase) != "windows") {
return $path
}
@@ -52,7 +52,7 @@ def _pj_normalize_windows_drive [path: string] {
}
let item = ($parsed | first)
$"(($item.drive | str upcase)):($item.rest)"
$"(($item.drive | str uppercase)):($item.rest)"
}
# Jump to a directory using only keywords.