fix(all): FIND OR TALK fixed.

This commit is contained in:
Rodrigo Rodriguez 2021-08-11 10:53:52 -03:00
parent 375d107dd2
commit a8e517d1f4

View file

@ -246,7 +246,7 @@ 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){