Skip to content

Commit 2abf2e6

Browse files
Restrict randomizer character set to lowercase letters only.
1 parent 7251119 commit 2abf2e6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34763,7 +34763,7 @@ exports.setPreview = setPreview;
3476334763
Object.defineProperty(exports, "__esModule", ({ value: true }));
3476434764
exports.randomizer = void 0;
3476534765
const randomizer = (length = 8) => {
34766-
const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
34766+
const chars = 'abcdefghijklmnopqrstuvwxyz';
3476734767
let result = '';
3476834768
for (let i = 0; i < length; i++) {
3476934769
result += chars.charAt(Math.floor(Math.random() * chars.length));

src/utils/randomizer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const randomizer = (length: number = 8) => {
2-
const chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
2+
const chars = 'abcdefghijklmnopqrstuvwxyz'
33

44
let result: string = ''
55

0 commit comments

Comments
 (0)