[haiku-commits] haiku: hrev44490 - src/apps/text_search

  • From: mattmadia@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 7 Aug 2012 22:00:08 +0200 (CEST)

hrev44490 adds 1 changeset to branch 'master'
old head: 817c114de7e2e71d98adccb66358e94244a1486a
new head: 772f5f839c61c1fbb32d77784bbcdd8859c87a2a

----------------------------------------------------------------------------

772f5f8: 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 <mattmadia@xxxxxxxxx>

                                                           [ x-ist <-@xxx> ]

----------------------------------------------------------------------------

Revision:    hrev44490
Commit:      772f5f839c61c1fbb32d77784bbcdd8859c87a2a
URL:         http://cgit.haiku-os.org/haiku/commit/?id=772f5f8
Author:      x-ist <-@xxx>
Date:        Thu Aug  2 19:35:45 2012 UTC
Committer:   Matt Madia <mattmadia@xxxxxxxxx>
Commit-Date: Tue Aug  7 15:59:13 2012 UTC

Ticket:      https://dev.haiku-os.org/ticket/8776

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 2 deletions(-)
src/apps/text_search/Grepper.cpp |    3 +--

----------------------------------------------------------------------------

diff --git a/src/apps/text_search/Grepper.cpp b/src/apps/text_search/Grepper.cpp
index 053dcbb..a20103e 100644
--- a/src/apps/text_search/Grepper.cpp
+++ b/src/apps/text_search/Grepper.cpp
@@ -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


Other related posts:

  • » [haiku-commits] haiku: hrev44490 - src/apps/text_search - mattmadia