Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When having a dialog which includes a `say` action text within brackets, the text inside brackets is removed and assumed to be settings of the `say` action. The [trimBetween()](https://github.com/axa-group/nlp.js/blob/master/packages/bot/src/dialog-parse.js#L37) function parses everything inside brackets as settings: ``` dialog my_dialog say Something (clarifying) whatever ``` Would be parsed as the following actions: ```json [ { "type": "dialog", "srcLine": "dialog my_dialog", "line": "my_dialog", "condition": "", "settings": "" }, { "type": "say", "srcLine": "say Something (clarifying) whatever", "line": "Something whatever", "condition": "", "settings": "clarifying" } ] ```
- Loading branch information