More work on Global getVariabke.

This commit is contained in:
Brad Arant committed 2024-09-23 17:07:32 -07:00
1 parent 0379974d5e
commit 3679644f64
2 files changed
+9 -3

No files matched your search

+5
View File
@@ -55,6 +55,11 @@ namespace jet {
coreutils::MString name = variable.getTokenInclude("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._-");
if(variable.ifNext("]"))
return name;
if(variable.startsWith("$[")) {
name << getVariable(variable);
return name;
}
return coreutils::MString("");
}
}