fix: replace deprecated str downcase/upcase with str lowercase/uppercase
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user