fix(all): Fix search on others bots than boot.

This commit is contained in:
Rodrigo Rodriguez 2023-09-10 17:37:13 -03:00
parent 741b40c77b
commit c8ae34bc71

View file

@ -331,7 +331,7 @@ export class KeywordsExpressions {
/^\s*(.*)\=\s*(REWRITE)(\s*)(.*)/gim,
($0, $1, $2, $3, $4) => {
const params = this.getParams($4, ['text']);
return `await sys.rewrite ({pid: pid, ${params}})`;
return `${$1} = await sys.rewrite ({pid: pid, ${params}})`;
}
];