Allow hyphens in the middle of remote usernames (#3440)

* Allow hyphens in the middle of remote usernames

refs: d797c29db462de4a3d69a5077a1ae4d03195b6f2

* Make options fallback better

* Make options flat
This commit is contained in:
Acid Chicken (硫酸鶏)
2018-12-01 07:19:17 +09:00
committed by syuilo
parent 1c99ef454b
commit 53c559c001
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ export const meta = {
};
export default define(meta, (ps, me) => new Promise(async (res, rej) => {
const isUsername = validateUsername(ps.query.replace('@', ''));
const isUsername = validateUsername(ps.query.replace('@', ''), true);
let users: IUser[] = [];