mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Adding EASCII character class.
This commit is contained in:
parent
c40a7a5265
commit
fa7c945363
@ -195,6 +195,22 @@ QVector<PasswordGroup> PasswordGenerator::passwordGroups() const
|
||||
|
||||
passwordGroups.append(group);
|
||||
}
|
||||
if (m_classes & EASCII) {
|
||||
PasswordGroup group;
|
||||
|
||||
for (int i = 128; i <= 169; i++) {
|
||||
group.append(i);
|
||||
}
|
||||
|
||||
for (int i = 171; i <= 254; i++) {
|
||||
if ((m_flags & ExcludeLookAlike) && (i == 249)) { // "﹒"
|
||||
continue;
|
||||
}
|
||||
group.append(i);
|
||||
}
|
||||
|
||||
passwordGroups.append(group);
|
||||
}
|
||||
|
||||
return passwordGroups;
|
||||
}
|
||||
|
@ -32,7 +32,8 @@ public:
|
||||
LowerLetters = 0x1,
|
||||
UpperLetters = 0x2,
|
||||
Numbers = 0x4,
|
||||
SpecialCharacters = 0x8
|
||||
SpecialCharacters = 0x8,
|
||||
EASCII = 0x16
|
||||
};
|
||||
Q_DECLARE_FLAGS(CharClasses, CharClass)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user