[Libreoffice-bugs] [Bug 144089] New: Find and Replace works incorrectly with regex "^." and selection only

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Aug 25 18:33:22 UTC 2021


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

            Bug ID: 144089
           Summary: Find and Replace works incorrectly with regex "^." and
                    selection only
           Product: LibreOffice
           Version: 7.3.0.0 alpha0+ Master
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: xiscofauli at libreoffice.org

This is just a follow-up of
https://bugs.documentfoundation.org/show_bug.cgi?id=137737#c11 for future
reference

1. Create a lorem ipsum text.
2. Select any random part inside any paragraph.
3. Using F&R, use regex "^." (any character in the beginning of the paragraph),
ad replace with "A" (character A).
4. Use "Current selection only"
5. Replace All.

The expected result is that the text is not found (unless we also selected the
very first character of the paragraph, in which case the very first character
of the paragraph should be replaced). The actual result now is that all the
selected text is replaced with AAAAA...

Introduced by
https://git.libreoffice.org/core/+/a511bffd67a9cebfdc878766581ac08c79d7ff51%5E%21

-- 
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/20210825/80c18537/attachment.htm>


More information about the Libreoffice-bugs mailing list