mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-13 17:52:22 +00:00
fix(script): better regex anchor
This commit is contained in:
parent
8702a28bcc
commit
551cbee92c
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ async function _deleteHabiticaData (user, email) {
|
|||
}
|
||||
|
||||
async function _processEmailAddress (email) {
|
||||
const emailRegex = new RegExp(`^${email}`, 'i');
|
||||
const emailRegex = new RegExp(`^${email}$`, 'i');
|
||||
const users = await User.find({
|
||||
$or: [
|
||||
{'auth.local.email': emailRegex},
|
||||
|
|
|
|||
Loading…
Reference in a new issue