From c39be5e6de702def6b3e913c6cfe64afee0b07fa Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Tue, 15 Sep 2026 14:17:18 -0400 Subject: [PATCH] Fix deprecated 'str downcase' in confirm helper str downcase/str lowercase differ across nu versions (renamed in 0.114.0); avoid depending on either by checking both cases directly. Co-Authored-By: Claude Sonnet 5 --- nu/hermenix.nu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nu/hermenix.nu b/nu/hermenix.nu index bbba0db..f4f1232 100644 --- a/nu/hermenix.nu +++ b/nu/hermenix.nu @@ -31,7 +31,7 @@ def ask [prompt: string, default: string = ""] { def confirm [prompt: string] { let reply = (input $" ($prompt) [y/N] ") - ($reply | str downcase | str starts-with "y") + (($reply | str starts-with "y") or ($reply | str starts-with "Y")) } def confirm-word [word: string, prompt: string] {