Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Commit

Permalink
Fix buefy#1903 - Searchable table should be case insensitive (buefy#1968
Browse files Browse the repository at this point in the history
)

* Update Table.vue

Fix search table should be case insensitive in regexp

* fix lint error
  • Loading branch information
dauriata authored and LeoMouyna committed Jan 6, 2020
1 parent b1bff1c commit 0f4d658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/table/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ export default {
if (Number.isInteger(getValueByPath(row, key))) {
if (getValueByPath(row, key) !== Number(this.filters[key])) return false
} else {
const re = new RegExp(this.filters[key])
const re = new RegExp(this.filters[key], 'i')
if (!getValueByPath(row, key).match(re)) return false
}
}
Expand Down

0 comments on commit 0f4d658

Please sign in to comment.