From 4da6672581e5dac3b886ad42a5c4275eb7024388 Mon Sep 17 00:00:00 2001 From: jlukic Date: Thu, 1 Jan 2015 15:05:28 -0500 Subject: [PATCH] Fixes #1542, typo from cd9f4f9e58 fix caused fullTextRegexp to match all values in search --- src/definitions/modules/search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/definitions/modules/search.js b/src/definitions/modules/search.js index 975797e9e..6a331e63a 100644 --- a/src/definitions/modules/search.js +++ b/src/definitions/modules/search.js @@ -305,7 +305,7 @@ $.fn.search = function(parameters) { if( content[field].match(searchRegExp) ) { results.push(content); } - else if( settings.searchFullText && content[field].match(content[field]) ) { + else if( settings.searchFullText && content[field].match(fullTextRegExp) ) { fullTextResults.push(content); } }