Fixes the case when the string to be searched contains mixed ending types and the first one is “\r”. Previously it would have searched for the “\n” first and skipped over the “\r”. Change-Id: I945087f2b93d92e73781c07b9b3cdaf9064d1122 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207061 Tested-by: Jenkins Reviewed-by: Neil Roberts <nroberts@libreoffice.org>