mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-24 07:20:02 +00:00
ESLint: warn for deprecated constructs
This commit is contained in:
@@ -49,7 +49,11 @@ export function snowflakeBasedInvite() {
|
||||
snowflake = snowflake / base;
|
||||
}
|
||||
|
||||
return str.substr(3, 8).split("").reverse().join("");
|
||||
return str
|
||||
.slice(3, 3 + 8)
|
||||
.split("")
|
||||
.reverse()
|
||||
.join("");
|
||||
}
|
||||
|
||||
export function randomUpperString(length: number = 10) {
|
||||
|
||||
Reference in New Issue
Block a user