* looking for nirs@freeshell.org--2005/moin--fix--1.3--patch-27 to compare with
* comparing to nirs@freeshell.org--2005/moin--fix--1.3--patch-27
M  MoinMoin/search.py

* modified files


--- orig/MoinMoin/search.py
+++ mod/MoinMoin/search.py
@@ -674,8 +674,8 @@
             return None
         modifiers = match.group('MOD').split(":")[:-1]
         text = match.group('TERM')
-        if ((text[0] == text[-1] == '"') or
-            (text[0] == text[-1] == "'")): text = text[1:-1]
+        if self.isQuoted(text):
+            text = text[1:-1]
 
         title_search = self.titlesearch
         regex = self.regex
@@ -703,6 +703,13 @@
             obj.negate()
         return obj                
 
+    def isQuoted(self, text):
+        # Empty string '' is not considered quoted
+        if len(text) < 3:
+            return False
+        return (text.startswith('"') and text.endswith('"') or
+                text.startswith("'") and text.endswith("'"))
+
 
 class SearchResults:
     """ Manage search results, supply different views


