From d6a8c7fce26f67070002dfe025cd344f617d1d6c Mon Sep 17 00:00:00 2001 From: renato <renato@rezo.net> Date: Sat, 19 Apr 2008 14:09:36 +0000 Subject: [PATCH] surligner meme si l'option min_length est null --- dist/javascript/SearchHighlight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/javascript/SearchHighlight.js b/dist/javascript/SearchHighlight.js index 12660507c2..9c72c16942 100644 --- a/dist/javascript/SearchHighlight.js +++ b/dist/javascript/SearchHighlight.js @@ -149,7 +149,7 @@ buildReplaceTools : function(query) { var re = [], regex; $.each(query,function(i,n){ - if(SearchHighlight.options.min_length && n.length>=SearchHighlight.options.min_length) + if(!SearchHighlight.options.min_length || n.length>=SearchHighlight.options.min_length) if(n = SearchHighlight.replaceAccent(n).replace(SearchHighlight.escapeRegEx,"$1\\$2")) re.push(n); }); -- GitLab