https://bugs.kde.org/show_bug.cgi?id=523733

            Bug ID: 523733
           Summary: Replace All with certain regex hangs Kate for a very
                    long time (sed finishes in <1 s)
    Classification: Applications
           Product: kate
      Version First 26.04.2
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kwrite
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
When performing a “Replace All” operation with a specific regular expression on
the attached file, Kate becomes unresponsive for an extremely long time. The
same replacement performed with `sed` completes in a fraction of a second.

STEPS TO REPRODUCE
1. Open the attached file in Kwrite.
2. Open the Find/Replace dialog.
3. Enable “Regular expression”.
4. Enter the following search pattern:

   ```
   .*ها\s\d*\n
   ```

5. Click "Replace All".

ACTUAL BEHAVIOUR
Kwrite freezes/becomes unresponsive for a very long time.

EXPECTED BEHAVIOUR
The replacement should complete almost instantly (as it does with `sed`)

SOFTWARE/OS VERSIONS
Operating System: Linux
KDE Plasma Version: 6.7.2
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to