summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Knaack <davidkna@users.noreply.github.com>2016-09-23 00:36:59 +0200
committerGitHub <noreply@github.com>2016-09-23 00:36:59 +0200
commitb757022a728a9f825c545f2235b99c5e98a85874 (patch)
tree035f625057bf62243e70d34498360616801de10d
parented99eae60cfefd09fab38f73ef18b4fbb873253e (diff)
downloadawesomplete-b757022a728a9f825c545f2235b99c5e98a85874.zip
awesomplete-b757022a728a9f825c545f2235b99c5e98a85874.tar.gz
awesomplete-b757022a728a9f825c545f2235b99c5e98a85874.tar.bz2
Fix for #16934
-rw-r--r--awesomplete.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/awesomplete.js b/awesomplete.js
index 367636e..4a0e7e8 100644
--- a/awesomplete.js
+++ b/awesomplete.js
@@ -284,7 +284,7 @@ _.SORT_BYLENGTH = function (a, b) {
};
_.ITEM = function (text, input) {
- var html = input === '' ? text : text.replace(RegExp($.regExpEscape(input.trim()), "gi"), "<mark>$&</mark>");
+ var html = input.trim() === '' ? text : text.replace(RegExp($.regExpEscape(input.trim()), "gi"), "<mark>$&</mark>");
return $.create("li", {
innerHTML: html,
"aria-selected": "false"