Skip to content

Commit

Permalink
fix(all): FIND OR TALK fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Aug 11, 2021
1 parent 375d107 commit a8e517d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/basic.gblib/services/GBVMService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ 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 (resolve){
Expand Down

0 comments on commit a8e517d

Please sign in to comment.