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

            Bug ID: 391291
           Summary: Part of filename function does not count special
                    characters
           Product: krename
           Version: unspecified
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: heire...@exherbo.org
          Reporter: de...@ukn8.de
  Target Milestone: ---

Created attachment 111136
  --> https://bugs.kde.org/attachment.cgi?id=111136&action=edit
Example "part of filename" screenshot

Using the part-of-filename function in KRename (e.g. [$1;5] or [$1-[length]])
does not count special characters like '&', '%', '#' and shortens the result by
the number of these. If a special character is at the end of the filename-part
'\' is inserted.

E.g.
[$2-[length]] "1234#6789.txt" -> "234#678.txt" (expected:
"234#6789.txt")[$2-[length]] "12&&567.txt" -> "2&&5.txt" (expected:
"2&&567.txt")
[$2;3] "123%56.txt" -> "23\.txt" (expected: "23%.txt")

Tested with KRename 4.0.9 (Kubuntu 17.10 packages) and 5.0.60 (git master).

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

Reply via email to