fix(basic.gblib): Threat multiple spaces as one.

This commit is contained in:
rodrigorodriguez 2023-01-04 16:36:18 -03:00
parent ac5911ee02
commit 0721a3fa78

View file

@ -962,7 +962,7 @@ export class GBVMService extends GBService {
]; ];
keywords[i++] = [ keywords[i++] = [
/^\s**save\s*(.*)\s*as\s*(.*)/gim, /^\s*save\s*(.*)\s*as\s*(.*)/gim,
($0, $1, $2, $3) => { ($0, $1, $2, $3) => {
return `await sys.saveFile({file: ${$2}, data: ${$1})\n`; return `await sys.saveFile({file: ${$2}, data: ${$1})\n`;
} }