Skip to content

Commit

Permalink
fix(basic.gblib): Threat multiple spaces as one.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jan 4, 2023
1 parent ac5911e commit 0721a3f
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 @@ -962,7 +962,7 @@ export class GBVMService extends GBService {
];

keywords[i++] = [
/^\s**save\s*(.*)\s*as\s*(.*)/gim,
/^\s*save\s*(.*)\s*as\s*(.*)/gim,
($0, $1, $2, $3) => {
return `await sys.saveFile({file: ${$2}, data: ${$1})\n`;
}
Expand Down

0 comments on commit 0721a3f

Please sign in to comment.