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:
x-ist
2012-08-07 15:59:13 +00:00
committed by Matt Madia
parent 817c114de7
commit 772f5f839c
+1 -2
View File
@@ -302,8 +302,7 @@ Grepper::_SetPattern(const char* src)
|| (c == '?') || (c == '*')
|| (c == '+') || (c == '-')
|| (c == ':') || (c == '^')
|| (c == '\'') || (c == '"')
|| (c == '`')) {
|| (c == '"') || (c == '`')) {
*dstPtr++ = '\\';
} else if ((c == '\\') || (c == '$')) {
// Some characters need to be escaped