mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 23:01:10 +08:00
FIX: allow underscore and dash in username search
_ and - are technically punctuations, but we allow them in usernames so accept them in search
This commit is contained in:
@ -89,6 +89,8 @@ QUnit.test("it skips a search depending on punctuations", async assert => {
|
||||
let allowedTerms = [
|
||||
"@sam sam", // double space is not allowed
|
||||
"@sam.sam",
|
||||
"@sam_sam",
|
||||
"@sam-sam",
|
||||
"@"
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user