Why does `NUM` capture text?
Here is an attempt to create a timeline plugin, but looks like something is broken with the NUM token since it captures texts.
Any idea why it captures 'abc:2:3`, as NUM, COLON, NUM, COLON, NUM sequence of tokens?
https://codesandbox.io/s/gifted-darwin-h1owf9?file=/src/App.js
Hi @plandem, this happens because in v3 NUM and word tokens transition to the same state. Try out the latest v4.0.0-beta.5, this should be fixed there. Only change you have to make to your code is replace utils.createTokenClass with linkify.createTokenClass (exported from the linkifyjs module)
Edit: Install with npm install linkifyjs@beta
@nfrasser sadly beta for major release is not the best choice for production :(