Merge branch '1366_shell_patterns'
* 1366_shell_patterns: Ticket #1366 (shell patterns: '[*' does not mark files started with '[')
Этот коммит содержится в:
Коммит
63786f2b7f
@ -91,14 +91,12 @@ mc_search__glob_translate_to_regex (gchar * str, gsize * len)
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
case '\\':
|
||||
case '+':
|
||||
case '.':
|
||||
case '$':
|
||||
case '(':
|
||||
case ')':
|
||||
case '^':
|
||||
case '-':
|
||||
g_string_append_c (buff, '\\');
|
||||
g_string_append_c (buff, str[loop]);
|
||||
loop++;
|
||||
|
@ -39,7 +39,7 @@
|
||||
|
||||
static const char ESCAPE_SHELL_CHARS[] = " !#$%()&~{}[]`?|<>;*\\\"";
|
||||
static const char ESCAPE_REGEX_CHARS[] = "^!#$%()&~{}[]`?|<>;*.\\";
|
||||
static const char ESCAPE_GLOB_CHARS[] = "${}*.\\";
|
||||
static const char ESCAPE_GLOB_CHARS[] = "$*\\";
|
||||
|
||||
/*** file scope functions ************************************************************************/
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user