1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 22:03:36 +00:00

[PM-15167] Fix password generator ascii ambiguous sets (#12143)

Co-authored-by:  Audrey  <ajensen@bitwarden.com>
This commit is contained in:
Michal Vaněk
2024-11-25 16:46:17 +01:00
committed by GitHub
parent d52da5869b
commit 06b3c37f03

View File

@@ -13,7 +13,7 @@ export const Ascii = Object.freeze({
/** The full set of characters available to the generator */ /** The full set of characters available to the generator */
Full: Object.freeze({ Full: Object.freeze({
Uppercase: toCharacterSet("ABCDEFGHIJKLMNOPQRSTUVWXYZ"), Uppercase: toCharacterSet("ABCDEFGHIJKLMNOPQRSTUVWXYZ"),
Lowercase: toCharacterSet("abcdefghijkmnopqrstuvwxyz"), Lowercase: toCharacterSet("abcdefghijklmnopqrstuvwxyz"),
Digit: toCharacterSet("0123456789"), Digit: toCharacterSet("0123456789"),
Special: SpecialCharacters, Special: SpecialCharacters,
} as CharacterSets), } as CharacterSets),
@@ -21,7 +21,7 @@ export const Ascii = Object.freeze({
/** All characters available to the generator that are not ambiguous. */ /** All characters available to the generator that are not ambiguous. */
Unmistakable: Object.freeze({ Unmistakable: Object.freeze({
Uppercase: toCharacterSet("ABCDEFGHJKLMNPQRSTUVWXYZ"), Uppercase: toCharacterSet("ABCDEFGHJKLMNPQRSTUVWXYZ"),
Lowercase: toCharacterSet("abcdefghijklmnopqrstuvwxyz"), Lowercase: toCharacterSet("abcdefghijkmnopqrstuvwxyz"),
Digit: toCharacterSet("23456789"), Digit: toCharacterSet("23456789"),
Special: SpecialCharacters, Special: SpecialCharacters,
} as CharacterSets), } as CharacterSets),