We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
randomizer
1 parent 7251119 commit 2abf2e6Copy full SHA for 2abf2e6
2 files changed
dist/index.js
@@ -34763,7 +34763,7 @@ exports.setPreview = setPreview;
34763
Object.defineProperty(exports, "__esModule", ({ value: true }));
34764
exports.randomizer = void 0;
34765
const randomizer = (length = 8) => {
34766
- const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
+ const chars = 'abcdefghijklmnopqrstuvwxyz';
34767
let result = '';
34768
for (let i = 0; i < length; i++) {
34769
result += chars.charAt(Math.floor(Math.random() * chars.length));
src/utils/randomizer.ts
@@ -1,5 +1,5 @@
1
export const randomizer = (length: number = 8) => {
2
- const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
+ const chars = 'abcdefghijklmnopqrstuvwxyz'
3
4
let result: string = ''
5
0 commit comments