Andrew Borodin 5ecf12483a Ticket #2952: search: fix zero-length substitution.
Problem:
Suppose you want to replace a substring in some file names with another,
so you do a File Rename operation with source pattern:

*OLDSTRING*

and target pattern:

\1NEWSTRING\2

If OLDSTRING occurs inside a filename, it is replaced correctly, but if
at the beginning or end of the filename, the corresponding zero-length
wildcard match is replaced by literal \1 or \2, respectively.

Expected
Wildcards that match a zero-length substring should be substituted with
an empty string.

Thanks boris<> for the original patch.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
2015-01-14 09:50:50 +03:00
..
2014-09-02 15:32:36 +04:00
2014-09-02 15:32:36 +04:00
2014-02-28 13:33:17 +04:00
2014-02-28 13:33:17 +04:00
2014-02-28 13:33:17 +04:00
2014-02-28 13:33:17 +04:00
2014-12-10 12:57:47 +03:00
2014-12-10 12:57:47 +03:00