mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Search function to be case insensitive (#14196)
* Search function does looks at all uppercase * Add toUpperCase call only in filterParameters function
This commit is contained in:
@@ -380,7 +380,7 @@ export class PostgresParametersPage extends DashboardPage {
|
|||||||
private filterParameters(search: string): void {
|
private filterParameters(search: string): void {
|
||||||
const filteredRowIndexes: number[] = [];
|
const filteredRowIndexes: number[] = [];
|
||||||
this.parametersTable.data?.forEach((row, index) => {
|
this.parametersTable.data?.forEach((row, index) => {
|
||||||
if (row[0]?.search(search) !== -1 || row[2]?.search(search) !== -1) {
|
if (row[0].toUpperCase()?.search(search.toUpperCase()) !== -1 || row[2].toUpperCase()?.search(search.toUpperCase()) !== -1) {
|
||||||
filteredRowIndexes.push(index);
|
filteredRowIndexes.push(index);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user