I have problem with PEG.js and matching words.
It looks like this:
Words = "stack"/"overflow"/"stackoverflow"
- when I try to match "stackoverflow" it shows error Expected end of input but "o" found.
so it found stack
and thought it was end - overflow
was left.
You can try it here: https://pegjs.org/online and paste:
Text = Word
Word = "stack"/"overflow"/"stackoverflow"
and try with word "stackoverflow"
I don't wont to change words in array.
Best Regards.