From 8708e6f83ac108078cfd15edb0427efe51353c0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Tue, 4 Mar 2008 15:34:08 +0000
Subject: [PATCH] a KEYWORD must contain at least one character

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19669 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ZSQLCatalog/SearchKey/KeyWordKey.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ZSQLCatalog/SearchKey/KeyWordKey.py b/product/ZSQLCatalog/SearchKey/KeyWordKey.py
index 9a12ace6da..ee5e22fcbd 100644
--- a/product/ZSQLCatalog/SearchKey/KeyWordKey.py
+++ b/product/ZSQLCatalog/SearchKey/KeyWordKey.py
@@ -101,7 +101,7 @@ class KeyWordKey(SearchKey):
     return t
 
   def t_KEYWORD(self, t):
-    r'(%\S*|([^!<>=\s%]\S*|!([^=\s]\S*)?)%)'
+    r'(%\S*|([^!<>=\s%]\S+|!([^=\s]\S+)?)%)'
     # KEYWORD must start and/or end with '%'.
     # It may contain arbitrary letters and numbers without white space
     value = t.value.strip()
-- 
2.30.9