fix(basic.gblib): COPY and CONVERT fixed.

This commit is contained in:
Rodrigo Rodriguez 2021-01-28 08:42:06 -03:00
parent d60b8b629f
commit 30f3b36469

View file

@ -290,11 +290,11 @@ export class GBVMService extends GBService {
});
code = code.replace(/(copy)(\s*)(.*)/gi, ($0, $1, $2, $3) => {
return `sys().copyFile(step, ${$3})\n`;
return `sys().copyFile(${$3})\n`;
});
code = code.replace(/(convert)(\s*)(.*)/gi, ($0, $1, $2, $3) => {
return `sys().convert(step, ${$3})\n`;
return `sys().convert(${$3})\n`;
});
code = code.replace(/(save)(\s)(.*)/gi, ($0, $1, $2, $3) => {