Use startsWith and endsWith for readability
This commit is contained in:
parent
bf7875bfaa
commit
08a59591ae
7 changed files with 8 additions and 8 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue