From cd0ea7e7cc5be7e84d17833ecc3543e60b539361 Mon Sep 17 00:00:00 2001 From: Peter Kissmann Date: Fri, 6 Jan 2017 11:55:03 +0100 Subject: [PATCH] When applying regex search, the search should always start from the master array --- js/core/core.filter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/core/core.filter.js b/js/core/core.filter.js index c4eef6d73..666adc720 100644 --- a/js/core/core.filter.js +++ b/js/core/core.filter.js @@ -240,6 +240,7 @@ function _fnFilter( settings, input, force, regex, smart, caseInsensitive ) // New search - start from the master array if ( invalidated || force || + regex || prevSearch.length > input.length || input.indexOf(prevSearch) !== 0 || settings.bSorted // On resort, the display master needs to be