mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
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:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user