diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index d145f4fb0..5657a076c 100644 --- a/src/definitions/modules/search.js +++ b/src/definitions/modules/search.js @@ -491,7 +491,7 @@ $.fn.search = function(parameters) { fieldExists = (typeof content[field] == 'string') ; if(fieldExists) { - if( content[field].match(matchRegExp) ) { + if( content[field].search(matchRegExp) !== -1) { // content starts with value (first in results) addResult(results, content); }