Open
Description
Consider this simplified example
// ecolect 0.6.0
const ecolect = require('ecolect')
const en = require('ecolect/language/en')
const { any } = require('ecolect/values')
const intents = ecolect.intentsBuilder(en)
.intent('catchall')
.value('any', any())
.add('{any}')
.done()
.build()
// "test a" works fine ("any" == "test")
// "a test" works fine ("any" == "test")
// "test a test" results in `Error: Multiple matches are only supported when in partial mode`
// "test a a" also results in error
// "a a a" also results in error
Additionally, in some situations it seems that after triggering this error, it will break future matching for any expression, including ones that worked previously. I haven't been able to narrow this down yet.
Metadata
Assignees
Labels
No labels
Activity