FIX: Strip @ when searching for users and groups. (#6506)
This commit is contained in:
@@ -66,3 +66,8 @@ QUnit.test("it places groups unconditionally for exact match", async assert => {
|
||||
let results = await userSearch({ term: "Team" });
|
||||
assert.equal(results[results.length - 1]["name"], "team");
|
||||
});
|
||||
|
||||
QUnit.test("it strips @ from the beginning", async assert => {
|
||||
let results = await userSearch({ term: "@Team" });
|
||||
assert.equal(results[results.length - 1]["name"], "team");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user