regex error with generating password

This commit is contained in:
2024-01-23 17:34:14 +01:00
parent 9f6cacf862
commit 31771baf98
+3 -3
View File
@@ -18,9 +18,9 @@ class PasswordGenerator{
let pass = "";
let lowerRegex = /[a-z]/g;
let upperRegex = /[A-Z]/g;
let numRegex = /[0-9]/g;
let lowerRegex = 'abcdefghijklmnopqrstuvwxyz';
let upperRegex = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
let numRegex = '0123456789';
// Generate password
//generate random length