node-autocomplete
node-autocomplete copied to clipboard
Can't autocomplete term that contains search string
The current version seems to support matching a search string to a term based only if the term begins with the search term. It would be useful if it could also match a term that contains the search term.
Scenario: Term begins with search string Given the term 'legal sea foods' When the user searches for 'legal sea' Then 'legal sea foods' should be returned as a match [PASS]
Scenario: Term contains search string Given the term 'legal sea foods' When the user searches for 'sea foods' Then 'legal sea foods' should be returned as a match [FAIL]