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:
Sam
2019-03-01 15:23:45 +11:00
parent 63cba2055f
commit 03a70ef69c
2 changed files with 4 additions and 2 deletions

View File

@ -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",
"@"
];