From ae73c9050d3ca170257192c7afb8ef2e312d7c46 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 30 Dec 2024 13:52:31 +0000 Subject: [PATCH] Fix string handling messup --- lib/IUtils/IDEMode.rakumod | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/IUtils/IDEMode.rakumod b/lib/IUtils/IDEMode.rakumod index 276fc9b..8985e11 100644 --- a/lib/IUtils/IDEMode.rakumod +++ b/lib/IUtils/IDEMode.rakumod @@ -36,7 +36,11 @@ class SExp::Actions { } method str-content($/) { - make $/.Str.subst(/\\(.)/, {$0}, :g) + if $/.Str && $0 { + make $/.Str.subst(/\\(.)/, {$0}, :g) + } else { + make '' + } } }