Matching long strings silently fails


I have investigated a bit since I have bumped into this.
I haven’t fully understood the concept of chunks, but anyway the regex matcher seem to be cropping any strings to maximum length of 1KiB.

I suspect it’s for performance reasons, so I’m not trying to take this cap away or increase it.
However, without any documentation or error message, it took me longer than a hour to figure out why it failed.
I hope this post helps anyone who encounter this later.