testing actions on dynamic components load

This commit is contained in:
Samuel Andert 2023-07-22 21:04:12 +02:00
parent 4d5b634e55
commit f060090b0c

View File

@ -9,7 +9,7 @@
type: 'chat'
};
const appCommandPattern = /@app:(\w+)/;
const appCommandPattern = /@(\w+)/;
const match = text.match(appCommandPattern);
if (match && match[1]) {
message.composite = {
@ -17,7 +17,8 @@
children: [
{
componentName: match[1], // Matched component name
props: {}
props: {},
actions: ['ClearMessages']
}
]
};