[Libreoffice-bugs] [Bug 137737] REPLACE not working if there is a footnote or endnote anchor at end of paragraph

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Aug 12 11:00:01 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=137737

Justin L <jluth at mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jluth at mail.com

--- Comment #3 from Justin L <jluth at mail.com> ---
This is fairly easily resolved with
-  if (pRegexMatcher && endPos < searchStr.getLength())
+  if (pRegexMatcher && endPos < searchStr.getLength() &&
!aSrchPara.searchString.endsWith("$"))

and similar for startsWith("^").

However, making a unit test will be the hardest part. Comment 1 indicates that
a replaceAll works, so copying Mike's test code won't work. I'm also puzzled
why it WOULD work in the first place.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210812/b30f69d0/attachment.htm>


More information about the Libreoffice-bugs mailing list