diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-08-26 01:18:34 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-26 01:18:34 +0900 |
| commit | a1fca2550ec7ff76e955c8e81bd1e785b0f61beb (patch) | |
| tree | 58086582b6319664ed9571f45593d637e3f1a672 /src/server/api | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| parent | Use startsWith and endsWith for readability (diff) | |
| download | misskey-a1fca2550ec7ff76e955c8e81bd1e785b0f61beb.tar.gz misskey-a1fca2550ec7ff76e955c8e81bd1e785b0f61beb.tar.bz2 misskey-a1fca2550ec7ff76e955c8e81bd1e785b0f61beb.zip | |
Merge pull request #2488 from syuilo/refactor-string
Use startsWith and endsWith for readability
Diffstat (limited to 'src/server/api')
| -rw-r--r-- | src/server/api/common/is-native-token.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/common/is-native-token.ts b/src/server/api/common/is-native-token.ts index 0769a4812e..6afbc99ab5 100644 --- a/src/server/api/common/is-native-token.ts +++ b/src/server/api/common/is-native-token.ts @@ -1 +1 @@ -export default (token: string) => token[0] == '!'; +export default (token: string) => token.startsWith('!'); |