Fixing more conditional logic

This commit is contained in:
2024-05-15 12:13:34 +02:00
parent 5bc1cd641f
commit 27cbb48c98
7 changed files with 60 additions and 34 deletions

View File

@ -25,7 +25,7 @@ BuboUtils {
*stringIsNumber {
arg string;
if (string == nil, { ^true });
if (string == nil || string == "", { ^false });
string = string.asList.collect({arg char; char.ascii});
string = (48..57).includesAll(string);
^string