fix(all): Fix in AS IMAGE generation of single row.
This commit is contained in:
parent
312db227b3
commit
576e73b625
2 changed files with 7 additions and 6 deletions
|
@ -603,13 +603,14 @@ export class DialogKeywords {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a custom user param persisted on storage.
|
* Returns bot param persisted on storage.
|
||||||
*
|
*
|
||||||
* @example GET PARAM name
|
* @example GET CONFIG name
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public async getUserParam({ pid, name }) {
|
public async getConfig({ pid, name }) {
|
||||||
await DialogKeywords.getOption({ pid, name });
|
let { min, user, params } = await DialogKeywords.getProcessInfo(pid);
|
||||||
|
return min.core.getParam(min.instance, name, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -304,9 +304,9 @@ export class KeywordsExpressions {
|
||||||
];
|
];
|
||||||
|
|
||||||
keywords[i++] = [
|
keywords[i++] = [
|
||||||
/^\s*((?:[a-z]+.?)(?:(?:\w+).)(?:\w+)*)\s*=\s*get param\s*(.*)/gim,
|
/^\s*((?:[a-z]+.?)(?:(?:\w+).)(?:\w+)*)\s*=\s*get config\s*(.*)/gim,
|
||||||
($0, $1, $2) => {
|
($0, $1, $2) => {
|
||||||
return `${$1} = await dk.getUserParam ({pid: pid, ${$2}})`;
|
return `${$1} = await dk.getConfig ({pid: pid, ${$2}})`;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue