new(whatsapp.gblib): New provider.
This commit is contained in:
parent
83664c57c7
commit
1d732e08bf
1 changed files with 4 additions and 4 deletions
|
@ -485,12 +485,12 @@ export class GBVMService extends GBService {
|
||||||
|
|
||||||
let basicCode: string = fs.readFileSync(filename, 'utf8');
|
let basicCode: string = fs.readFileSync(filename, 'utf8');
|
||||||
|
|
||||||
// Processes EXIT keyword, removing extracode, useful
|
// Processes END keyword, removing extracode, useful
|
||||||
// for development.
|
// for development.
|
||||||
|
|
||||||
let exit = /(\nexit\n)/gi.exec(basicCode);
|
let end = /(\nend\n)/gi.exec(basicCode);
|
||||||
if (exit) {
|
if (end) {
|
||||||
basicCode = basicCode.substring(0, exit.index);
|
basicCode = basicCode.substring(0, end.index);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process INCLUDE keyword to include another
|
// Process INCLUDE keyword to include another
|
||||||
|
|
Loading…
Add table
Reference in a new issue