We're integrating Tiptap, which relies on this library, and noticed that trying to generateJSON from a text fragment << results in an infinite loop which crashes the browser.
This PR fixes what I think is a small bug, where the string slicing was off-by-one due to the substring(1) call.
We're integrating Tiptap, which relies on this library, and noticed that trying to generateJSON from a text fragment
<<
results in an infinite loop which crashes the browser.This PR fixes what I think is a small bug, where the string slicing was off-by-one due to the
substring(1)
call.