You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Entering in special chars in the search field cause it to select first category #103
The problem is autocomplete menu is displayed if a category match the last word or if last word is empty. The regx that match last word in code doesn't work properly.
Just replace :
var lastWord = searchTerm.match(/\w+?$/); // Autocomplete only last word.
by
var lastWord = searchTerm.match(/[^\ ]$/); // Autocomplete only last word.
on autocompleteValues function on SearchInput definition.
Activity
mewynn commentedon Jul 10, 2014
You can fix this bug yourself :
The problem is autocomplete menu is displayed if a category match the last word or if last word is empty. The regx that match last word in code doesn't work properly.
Just replace :
var lastWord = searchTerm.match(/\w+?$/); // Autocomplete only last word.
by
var lastWord = searchTerm.match(/[^\ ]$/); // Autocomplete only last word.
on autocompleteValues function on SearchInput definition.