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

Finley Watson <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://invent.kde.org/sdk/
                   |                            |lokalize/-/commit/3a01d4f90
                   |                            |d8823cdeeb603b829608356f9c6
                   |                            |37bd

--- Comment #2 from Finley Watson <[email protected]> ---
Git commit 3a01d4f90d8823cdeeb603b829608356f9c637bd by Finley Watson, on behalf
of Sairam Bisoyi.
Committed on 02/03/2026 at 02:39.
Pushed by finw into branch 'master'.

fix: plural regex search

Summary:

This MR fixes an issue when a regular expression searches using the '$' failed
to match the plural forms in the editor tab page's Quick Search.

Bugs:

1. Plural forms initially were joined using the '|' operator rather than a
   newline '\\n', thereby failing the regex search.
2. The `QRegularExpression` used by the proxy model didn't have
   `MultilineOption` flag, so the '$' was finding the absolute end of the list
   which was the last element.

Things I changed:

1. src/cataloglistview/catalogmodel.cpp: Replaced '|' with '\\n'
2. src/cataloglistview/cataloglistview.cpp: Updated setFilterRegExp() to
   include `MultilineOption` flag.

M  +6    -3    src/cataloglistview/cataloglistview.cpp
M  +1    -0    src/cataloglistview/catalogmodel.cpp

https://invent.kde.org/sdk/lokalize/-/commit/3a01d4f90d8823cdeeb603b829608356f9c637bd

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

Reply via email to