-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
While pos 50 is nice its nicer to just see where something goes wrong.
So it would be nice if there was a second parser which returend left/right or such
where left contains something like
TEXT:
abc<ERROR HERE>def
Catching the exception and using this works for me for the time being:
if (m = e.toString().match(/at char ([^ ]+)/)){
const p = parseInt(m[1])
text = text.slice(0, p)+"HERE"+text.slice(p)
}
Metadata
Metadata
Assignees
Labels
No labels