Opened 12 years ago
Closed 12 years ago
#6738 closed feature (notabug)
Word boundaries
Reported by: | JohnG | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.autocomplete | Version: | 1.8.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I need an autocomplete-combobox with word boundaries matching
Using this http://jqueryui.com/demos/autocomplete/#combobox
and this
http://bugs.jqueryui.com/ticket/6043
var matcher = new RegExp( '^'+$.ui.autocomplete.escapeRegex(term), "i" );
autocomplete finds the begging of an option, but
var matcher = new RegExp( '\\b'+$.ui.autocomplete.escapeRegex(term), "i" );
does not work.
Note: See
TracTickets for help on using
tickets.
We're not implementing any other matching algorithms. Please ask for help on the forums.