Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
Lowercase random ids.
Browse files Browse the repository at this point in the history
  • Loading branch information
Munawwar committed Mar 2, 2015
1 parent a7fd8ca commit 16d5f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lithium.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@
uuid: function (len, hypenate) {
var count = 1, id = (new Array((len || 10) + 1).join('x')).replace(/x/g, function () {
return ((count++ % 5) ? '' : '-') + (Math.random() * 100 % 36 | 0).toString(36);
}).toUpperCase();
});
return hypenate ? id : id.replace(/-/g, '');
}
};
Expand Down

0 comments on commit 16d5f0a

Please sign in to comment.