diff MoinMoin/action/fullsearch.py @ 5829:a744f573fe30

advancedsearch: fix problem with non-ascii chars breaking up words for OR and NOT terms
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 04 Feb 2012 16:52:24 +0100
parents a488e4332862
children 570e430cd08c
line wrap: on
line diff
--- a/MoinMoin/action/fullsearch.py	Sat Feb 04 15:24:39 2012 +0100
+++ b/MoinMoin/action/fullsearch.py	Sat Feb 04 16:52:24 2012 +0100
@@ -141,7 +141,7 @@
         else:
             mtime_msg = None
 
-        word_re = re.compile(r'(\"[\w\s]+"|\w+)')
+        word_re = re.compile(r'(\"[\w\s]+"|\w+)', re.UNICODE)
         needle = ''
         if categories[0]:
             needle += 'category:%s ' % ','.join(categories)