From a74724333b41e963386788a5c5653af226fec3b9 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 11 Sep 2020 17:11:16 -0700 Subject: [PATCH] Allowing selection of items with quotes Allowing selection of items with quotes and apostrophes --- auto-complete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-complete.js b/auto-complete.js index 2f5a88c..07d403b 100644 --- a/auto-complete.js +++ b/auto-complete.js @@ -41,7 +41,7 @@ var autoComplete = (function(){ // escape special characters search = search.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); var re = new RegExp("(" + search.split(' ').join('|') + ")", "gi"); - return '
' + item.replace(re, "$1") + '
'; + return '
' + item.replace(re, "$1") + '
'; }, onSelect: function(e, term, item){} };