3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-07 11:07:19 +00:00

rename get_snowflake

Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
Tiago R 2023-10-09 09:55:55 +00:00 committed by GitHub
parent c6f838f333
commit 77f414925f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 10 deletions

View file

@ -481,7 +481,7 @@ const baseValues = {
const mod = Math.floor(Math.random() * cases.length) + 1;
return baseValues.cases(mod, ...cases);
},
get_snowflake(str) {
trim_text(str) {
if (!str || typeof str !== "string") return "";
return str.replaceAll(/[^\d]+/g, "");
},