mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-23 18:34:02 +02:00
Case-insensitive search
This commit is contained in:
parent
ae93fe22ce
commit
92882fee5f
@ -116,11 +116,11 @@ class BoardTree {
|
||||
}
|
||||
|
||||
private searchFilterCards(cards: IBlock[]) {
|
||||
const { searchText } = this
|
||||
const searchText = this.searchText?.toLocaleLowerCase()
|
||||
if (!searchText) { return cards.slice() }
|
||||
|
||||
return cards.filter(card => {
|
||||
if (card.title?.toLowerCase().indexOf(searchText) !== -1) { return true }
|
||||
if (card.title?.toLocaleLowerCase().indexOf(searchText) !== -1) { return true }
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user