Since the search pattern is wrapped in double quotes for grep, the symbol ' (apostrophe) must not be escaped. Fixes #8776.
Signed-off-by: Matt Madia <[email protected]>
This commit is contained in:
@@ -302,8 +302,7 @@ Grepper::_SetPattern(const char* src)
|
|||||||
|| (c == '?') || (c == '*')
|
|| (c == '?') || (c == '*')
|
||||||
|| (c == '+') || (c == '-')
|
|| (c == '+') || (c == '-')
|
||||||
|| (c == ':') || (c == '^')
|
|| (c == ':') || (c == '^')
|
||||||
|| (c == '\'') || (c == '"')
|
|| (c == '"') || (c == '`')) {
|
||||||
|| (c == '`')) {
|
|
||||||
*dstPtr++ = '\\';
|
*dstPtr++ = '\\';
|
||||||
} else if ((c == '\\') || (c == '$')) {
|
} else if ((c == '\\') || (c == '$')) {
|
||||||
// Some characters need to be escaped
|
// Some characters need to be escaped
|
||||||
|
|||||||
Reference in New Issue
Block a user