1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-04 09:35:51 +02:00

Use startsWith and endsWith for readability

This commit is contained in:
Aya Morisawa
2018-08-25 22:42:26 +09:00
parent bf7875bfaa
commit 08a59591ae
7 changed files with 8 additions and 8 deletions

View File

@@ -48,7 +48,7 @@ export default Vue.extend({
this.open();
});
} else {
const query = this.user[0] == '@' ?
const query = this.user.startsWith('@') ?
parseAcct(this.user.substr(1)) :
{ userId: this.user };