Easily generate random strings like passwords, with simple options for specifying a length and for using patterns of numeric, alpha-numeric, alphabetical, special or custom characters. (the original "generate-password")
The issue is that if exclude option has right square bracket, the regular expression pattern breaks, and it does not exclude any characters user input.
I added few lines of code to handle right square bracket. I also added two test cases when exclude option has right square bracket character.
The issue is that if exclude option has right square bracket, the regular expression pattern breaks, and it does not exclude any characters user input.
I added few lines of code to handle right square bracket. I also added two test cases when exclude option has right square bracket character.
Let me know if I need to adjust the code. Thanks.