fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit 4c037a7205 - Show all commits

View file

@ -149,7 +149,7 @@ export class KeywordsExpressions {
$1 = $1.trim(); $1 = $1.trim();
if ($1.substr(0, 1) === '#') { if ($1.substr(0, 1) === '#') {
let sessionName = $1.substr(1, $1.indexOf(',') - 1); sessionName = $1.substr(1, $1.indexOf(',') - 1);
$1 = $1.replace(/\; \"\,\"/gi, ''); $1 = $1.replace(/\; \"\,\"/gi, '');
$1 = $1.substr($1.indexOf(',') + 1); $1 = $1.substr($1.indexOf(',') + 1);
@ -182,8 +182,6 @@ export class KeywordsExpressions {
$1 = $1.replace('FOR APPEND', ''); $1 = $1.replace('FOR APPEND', '');
$1 = $1.replace('FOR OUTPUT', ''); $1 = $1.replace('FOR OUTPUT', '');
if ((pos = $1.match(/\s*AS\s*\#/gi))) { if ((pos = $1.match(/\s*AS\s*\#/gi))) {
kind = 'AS'; kind = 'AS';
} else if ((pos = $1.match(/\s*WITH\s*\#/gi))) { } else if ((pos = $1.match(/\s*WITH\s*\#/gi))) {
@ -215,7 +213,7 @@ export class KeywordsExpressions {
`; `;
return code; return code;
} else { } else {
sessionName = `"${sessionName}"`; sessionName = sessionName?`"${sessionName}"`:null;
kind = `"${kind}"`; kind = `"${kind}"`;
return `page = await wa.openPage({pid: pid, handle: page, sessionKind: ${kind}, sessionName: ${sessionName}, ${params}})`; return `page = await wa.openPage({pid: pid, handle: page, sessionKind: ${kind}, sessionName: ${sessionName}, ${params}})`;
} }