From 786ba05e8c287d9a4da2fe6df5afec9141f9bc38 Mon Sep 17 00:00:00 2001 From: Amir Date: Sun, 20 Dec 2020 14:59:22 +0330 Subject: [PATCH] now dropdown searches all words of a sentence provided by dropdown item. #7006 --- dist/components/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/components/dropdown.js b/dist/components/dropdown.js index 2f1bfe4d3..aed134e2b 100644 --- a/dist/components/dropdown.js +++ b/dist/components/dropdown.js @@ -788,7 +788,7 @@ $.fn.dropdown = function(parameters) { : module.get.query(), results = null, escapedTerm = module.escape.string(searchTerm), - beginsWithRegExp = new RegExp('^' + escapedTerm, 'igm') + beginsWithRegExp = new RegExp(escapedTerm, 'igm') ; // avoid loop if we're matching nothing if( module.has.query() ) {