I just encountered an XML that had a zero width space at index 0 of the file. This caused the __end_position to be off by 1 throughout the entire file.
My fix was simple: just .trim() the string before using it. But maybe this character needs to be ignored/removed?
I just encountered an XML that had a zero width space at index 0 of the file. This caused the __end_position to be off by 1 throughout the entire file.
My fix was simple: just
.trim()
the string before using it. But maybe this character needs to be ignored/removed?