mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 17:00:10 +00:00
trimmed query matching
This commit is contained in:
parent
85d6f58c0b
commit
efb5c4f79d
3 changed files with 4 additions and 3 deletions
3
httpdocs/js/bootstrap3-typeahead.js
vendored
3
httpdocs/js/bootstrap3-typeahead.js
vendored
|
|
@ -216,7 +216,8 @@
|
|||
|
||||
matcher: function (item) {
|
||||
var text = this.displayText(item);
|
||||
return ~text.toLowerCase().indexOf(this.query.toLowerCase());
|
||||
// trim the final trailing spaces
|
||||
return ~text.toLowerCase().indexOf(this.query.trimEnd().toLowerCase());
|
||||
},
|
||||
|
||||
sorter: function (items) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue