Commit 0da77944 authored by Nicolas Delaby's avatar Nicolas Delaby

Perform regex to exclude strings like "RRRR*"

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20806 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d05398a8
......@@ -58,7 +58,8 @@ class FullTextKey(SearchKey):
t_DOUBLEQUOTE = r'(\")'
def t_WORD(self, t):
r'[^\+\-<>\(\)\~\*\"\s]\S*'
r'[^\+\-<>\(\)\~\*\"\s]$|[^\+\-<>\(\)\~\*\s]+[^\*\s\)]'
#r'[^\+\-<>\(\)\~\*\"\s]\S*'
#r'[\x7F-\xFF\w\d][\x7F-\xFF\w\d]*'
# WORD may contain arbitrary letters and numbers without white space
word_value = t.value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment