changeset 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 c4ff300ad284
children 5f2a92862778
files MoinMoin/action/fullsearch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)