Fix string handling messup

This commit is contained in:
Nathan McCarty 2024-12-30 13:52:31 +00:00
parent f6c40813d2
commit ae73c9050d

View file

@ -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 ''
}
}
}