CSML-by-Clevy / csml-engine

CSML is an easy-to-use chatbot programming language and framework.

Home Page:https://csml.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slice() does not accept 0 as first parameter

bastienbot opened this issue · comments

Describe the bug
Slice returns the following error when trying to pass 0 as first parameter
.slice(start, optional) args need to be inferior to the string length at line 6, column 12 at flow [Default]

To Reproduce
Check this code https://play.csml.dev/bot/2874f635-3fa2-4154-a760-4d65dee6c3f7

Expected behavior
It should accept 0 as first parameter