Skip to content

Commit 7861803

Browse files
committed
INT-647 collection filterable should not be limited to prefix match
1 parent 8ec613a commit 7861803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sidebar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ var SidebarView = View.extend({
5555
}
5656
},
5757
filterCollections: function(pattern) {
58-
var re = new RegExp('^' + pattern);
58+
var re = new RegExp(pattern);
5959

6060
this.collection.filter(function(model) {
6161
return re.test(model.getId());

0 commit comments

Comments
 (0)