Thanks for the quick fix! I also noticed some of my old code is referencing the "segment" function, which doesn't seem to exist anymore. Any suggestion how I should update my old code to achieve similar functionality? It's been a while, but I remember what my code was trying to do was to parse the doc and add some sort of adornments to the words based on some conditions. Thanks again for your help!
hey, yeah sorry about that.
you can reproduce segment() with something like this:
https://runkit.com/spencermountain/63626f38daa0e8000921703b
segment was meant to handle overlappy matches, but never got more clever than simply looping through them in a greedy way. I'd be happy to bring it back, if it makes sense in your project.
cheers