FIX: Do not skip some emails in user search (#8317)

It used to skip the email addresses containing the plus sign.
This commit is contained in:
Dan Ungureanu
2019-11-11 18:42:45 +02:00
committed by GitHub
parent 6672dcc985
commit 55bdd9e6a2
2 changed files with 4 additions and 1 deletions

View File

@ -169,6 +169,9 @@ QUnit.test("it skips a search depending on punctuations", async assert => {
// 6 + email
assert.equal(results.length, 7);
results = await userSearch({ term: "sam+test@sam.com", allowEmails: true });
assert.equal(results.length, 7);
results = await userSearch({ term: "sam@sam.com" });
assert.equal(results.length, 0);