summaryrefslogtreecommitdiffstats
path: root/awesomplete.js
diff options
context:
space:
mode:
Diffstat (limited to 'awesomplete.js')
-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"