Skip to content

Commit

Permalink
docs(autocomplete): Fix regex filter search (#4425)
Browse files Browse the repository at this point in the history
  • Loading branch information
willshowell authored and kara committed May 9, 2017
1 parent 525ce1e commit d10e5f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/autocomplete/autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class MyComp {
}

filter(name: string): User[] {
return this.options.filter(option => new RegExp(`^${name}`, 'gi').test(option));
return this.options.filter(option => new RegExp(`^${name}`, 'gi').test(option.name));
}

displayFn(user: User): string {
Expand Down

0 comments on commit d10e5f8

Please sign in to comment.