changeset 1203:10512e7ca243

we should allow regex with category search prefix
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 24 Jul 2006 01:19:18 +0200
parents 95aeb7dae0c6
children 9085983fc624
files MoinMoin/search/queryparser.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search/queryparser.py	Mon Jul 24 01:12:51 2006 +0200
+++ b/MoinMoin/search/queryparser.py	Mon Jul 24 01:19:18 2006 +0200
@@ -788,9 +788,10 @@
             if cat_match:
                 text = cat_match.groups()[0]
                 category = True
+                regex = False
 
         if category:
-            obj = CategorySearch(text, use_re=False, case=case)
+            obj = CategorySearch(text, use_re=regex, case=case)
         elif lang:
             obj = LanguageSearch(text, use_re=regex, case=False)
         elif linkto: