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

Akseli Lahtinen <akse...@akselmo.dev> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kcoreaddons/-/commit
                   |                            |/50c3c2ed1c7c03bacb47a16437
                   |                            |41039b8cf274f0

--- Comment #4 from Akseli Lahtinen <akse...@akselmo.dev> ---
Git commit 50c3c2ed1c7c03bacb47a1643741039b8cf274f0 by Akseli Lahtinen.
Committed on 13/11/2024 at 09:03.
Pushed by akselmo into branch 'master'.

kfileutils: compare to basename in makeSuggestedName

Instead of searching from oldName, search from baseName since that is what
we want to modify anyway.

When searching from oldName here and then modifying baseName, with
weird filenames like "super.weird.filename(123).txt(54321)" it gets
stuck in endless loop.

This also adds a test for above filename. The regex has an added space before
the parentheses match, since the number we append also has a space in front of
it.

M  +1    -0    autotests/kfileutilstest.cpp
M  +3    -3    src/lib/io/kfileutils.cpp

https://invent.kde.org/frameworks/kcoreaddons/-/commit/50c3c2ed1c7c03bacb47a1643741039b8cf274f0

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

Reply via email to