Change default name/email search query to case insensitive regex instead of LIKE
This commit is contained in:
parent
f686606b9e
commit
b461f51275
1 changed files with 1 additions and 1 deletions
|
@ -553,7 +553,7 @@ class Subscribers extends React.PureComponent {
|
|||
}
|
||||
|
||||
q = q.replace(/'/g, "''")
|
||||
const query = `(name LIKE '%${q}%' OR email LIKE '%${q}%')`
|
||||
const query = `(name ~* '${q}' OR email ~* '${q}')`
|
||||
this.fetchRecords({ query: query })
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue