fix(basic.gblib): TOLIST fixed for empty values.
This commit is contained in:
parent
25a7d01b6d
commit
66c0c4b90d
1 changed files with 2 additions and 2 deletions
|
@ -244,9 +244,9 @@ export class GBVMService extends GBService {
|
||||||
return `${$2} = hear()`;
|
return `${$2} = hear()`;
|
||||||
});
|
});
|
||||||
|
|
||||||
code = code.replace(/.*(\w+)\s*\=\s*find\s*(.*)\s*or talk\s*(.*)/gi, ($0, $1, $2, $3) => {
|
code = code.replace(/(\w+)\s*=\s*find\s*(.*)\s*or talk\s*(.*)/gi, ($0, $1, $2, $3) => {
|
||||||
return `${$1} = sys().find(${$2})\n
|
return `${$1} = sys().find(${$2})\n
|
||||||
if (!${$1}) {
|
if (!${$1}) {=
|
||||||
if (resolve){
|
if (resolve){
|
||||||
resolve();
|
resolve();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue