Skip to content

Commit 77fe57f

Browse files
authored
Update __generateID.js
1 parent 54bbcbf commit 77fe57f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Workspace/Resources/__generateID.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ const { random } = require('stews');
33

44

55
Workspace.newF("__generateID", function(length=5, characters=null) {
6-
characters = (characters) ? characters : "abcdefghijklmnopqrstuvwxyz1234567890-_".split("");
6+
characters = (characters) ? characters : "abcdefghijklmnopqrstuvwxyz1234567890-_"
7+
if (typeof characters == "string") characters = characters.split("");
78
let id = "";
89

910
for (let i = 0; i < length; i++) {

0 commit comments

Comments
 (0)