mirror of
https://github.com/jimeh/fancy_input.git
synced 2026-02-19 03:26:40 +00:00
improved exact_match filtering
This commit is contained in:
@@ -77,7 +77,7 @@
|
|||||||
|
|
||||||
$.fn.suggest_results.search = function(elm, options){
|
$.fn.suggest_results.search = function(elm, options){
|
||||||
var self = $.fn.suggest_results;
|
var self = $.fn.suggest_results;
|
||||||
var terms = (options.exact_match) ? $.trim(elm.val()) : elm.val().split(/\s/);
|
var terms = (options.exact_match) ? $.trim(elm.val()) : $.trim(elm.val()).split(/\s+/);
|
||||||
if (typeof(options.url) === "string" && options.url !== "") {
|
if (typeof(options.url) === "string" && options.url !== "") {
|
||||||
self.query_for_data(elm, options);
|
self.query_for_data(elm, options);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user