fix(core.gbapp): Fix in SEND TO FILE defect.
This commit is contained in:
parent
f41510328f
commit
ea895c142c
1 changed files with 4 additions and 0 deletions
|
@ -216,6 +216,7 @@ export class GBVMService extends GBService {
|
|||
code = code.replace(/(talk)(\s)(.*)/gi, ($0, $1, $2, $3) => {
|
||||
return `talk (step, ${$3})\n`;
|
||||
});
|
||||
|
||||
code = code.replace(/(send file to)(\s*)(.*)/gi, ($0, $1, $2, $3) => {
|
||||
return `sendFileTo (step, ${$3})\n`;
|
||||
});
|
||||
|
@ -357,6 +358,9 @@ export class GBVMService extends GBService {
|
|||
code = code.replace(/("[^"]*"|'[^']*')|\bsendFile\b/gi, ($0, $1) => {
|
||||
return $1 === undefined ? 'this.sendFile' : $1;
|
||||
});
|
||||
code = code.replace(/("[^"]*"|'[^']*')|\bsendFileTo\b/gi, ($0, $1) => {
|
||||
return $1 === undefined ? 'this.sendFileTo' : $1;
|
||||
});
|
||||
code = code.replace(/("[^"]*"|'[^']*')|\btransfer\b/gi, ($0, $1) => {
|
||||
return $1 === undefined ? 'this.transfer' : $1;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue