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

            Bug ID: 145806
           Summary: Backreferences inserted as literal text in regex
                    replace if target contains comment
           Product: LibreOffice
           Version: 7.2.2.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: sean.an...@gmail.com

Description:
When the target of a regex replace contains a comment, the literal text of the
replace field is inserted instead of the backreferences, i.e. “$1  $2” is
inserted instead of the text found.

Steps to Reproduce:
1. Start with a document containing sentences ending with a full stop followed
by a single space
2. Search & Replace with regex (+ case matching)
   Search:
   ([.?!]|\.”|\?”|!”) ([A-Z]|“|‘)
   Replace:
   $1  $2


Actual Results:
If the match contains a comment, the text “$1  $2” is inserted instead of the
backreferences to the matched text.

Expected Results:
The backreferenced text should be inserted (including the comment) as it is
with matches that don’t contain a comment.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.2.2.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: gtk3
Locale: ga-IE (ga_IE.UTF-8); UI: ga-IE
7.2.2-2
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to