Skip to content

Commit

Permalink
Change default name/email search query to case insensitive regex inst…
Browse files Browse the repository at this point in the history
…ead of LIKE
  • Loading branch information
knadh committed Dec 18, 2018
1 parent f686606 commit b461f51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/my/src/Subscribers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 })
}

Expand Down

0 comments on commit b461f51

Please sign in to comment.