new(basic.gblib): SET CONTEXT new keyword.

This commit is contained in:
Rodrigo Rodriguez 2024-06-27 19:09:54 -03:00
parent 15c47af5cf
commit 81258046c0

View file

@ -744,7 +744,10 @@ export class KeywordsExpressions {
// Handles the GET http version.
else {
if ($2.endsWith('.pdf') && !$2.startsWith('https')) {
const value = $2.replace(/\`/gi, '');
if (value.endsWith('.pdf') && !value.startsWith('https')) {
return `${$1} = await sys.getPdf({pid: pid, file: ${$2});`;
} else {
return `