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-27 15:24:03 +01:00 committed by GitHub
parent 78a427a92c
commit e8a3270cd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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