3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

Update backend/src/templateFormatter.ts

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
metal 2021-08-30 19:09:03 +01:00 committed by GitHub
parent e8a3270cd1
commit 6a8a9a1e54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -390,7 +390,7 @@ const baseValues = {
},
strlen(arg) {
if (typeof arg !== "string") return 0;
return arg.length;
return [...arg].length;
},
rand(from, to, seed = null) {
if (isNaN(from)) return 0;