Hi Tobias,
the attached patch fixes an ICE which could occur for empty substrings (see test case).I think one should rather fix the following issue.
I am not sure what you mean. Does that mean that fixing the following issue will also fix PR 85781, or that the PR should not be fixed? Regards Thomas