running-coder / jquery-typeahead

Javascript Typeahead (autocomplete) plugin with more than 50 options and callbacks.
http://www.runningcoder.org/jquerytypeahead/
MIT License
544 stars 121 forks source link

word/phrase search not producing the expected outcome #524

Closed ilboo closed 3 years ago

ilboo commented 3 years ago

Hello there, Thanks for creating a useful search autocomplete library.

I have a list of words that I would like to match by entering a search term in the search box. One of the words is "blessing in disguise (a)". Please note that "(a)" comes at the end of the phrase (and not at the beginning).

The issue is...

========================================================

when I type "blessing in disguise (a" into the search box

However...

when I type "blessing in disguise (a)" into the search box: please notice ')' at the end

========================================================

Does this have to do with jQuery Typeahead Search itself (jquery.typeahead.min.js)? OR... Does it have to do with jQuery (jquery-3.5.1.slim.min.js)?

How can I make this type of search work? I have some words/phrases ending with (a), (an), or (the): for example, apple a day keeps the doctor away (an). I would appreciate your help. Thank you.