Skip to content

Commit

Permalink
fix(basic.gblib): TOLIST fixed for empty values.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Aug 15, 2021
1 parent 25a7d01 commit 66c0c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/basic.gblib/services/GBVMService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ export class GBVMService extends GBService {
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
if (!${$1}) {
if (!${$1}) {=
if (resolve){
resolve();
}
Expand Down

0 comments on commit 66c0c4b

Please sign in to comment.