Skip to content

Commit

Permalink
sub string match instead of prefix match
Browse files Browse the repository at this point in the history
  • Loading branch information
yosyad committed Jun 19, 2019
1 parent 90d85da commit 58e4867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser/flagr-ui/src/components/Flags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export default {
if (this.searchTerm) {
this.filteredFlags = this.flags.filter(
({ id, description}) =>
id.toString().startsWith(this.searchTerm) ||
description.startsWith(this.searchTerm)
id.toString().includes(this.searchTerm) ||
description.includes(this.searchTerm)
)
}
else {
Expand Down

0 comments on commit 58e4867

Please sign in to comment.