aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPerlbotics <perlbotix@cpan.org>2017-11-15 21:11:43 +0100
committerPerlbotics <perlbotix@cpan.org>2017-11-15 21:11:43 +0100
commit729be61ffc589a01850d93ab9b9679b097b559b3 (patch)
tree164575c93367a71e79a26f55c5cce34e8e1fe7b3
parenta64315ede3c54e2d6d6548bce3791f52c2e3cca5 (diff)
downloadzxcvbn-c-729be61ffc589a01850d93ab9b9679b097b559b3.tar.gz
Fix for UK_Qwerty layout. Fix for Dvorak array size.
Two layout fixes around the keys ',' and ';'. Dvorak layout array size reduced to 47*7. Test outcome was not affected.
-rw-r--r--zxcvbn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/zxcvbn.c b/zxcvbn.c
index 7ab2eb2..af84b65 100644
--- a/zxcvbn.c
+++ b/zxcvbn.c
@@ -937,14 +937,14 @@ static const uint8_t UK_Qwerty[48*7] =
{
/* key, left, up-left, up-right, right, down-right, down-left */
'#', '\'',']', 0, 0, 0, 0, '\'',';', '[', ']', '#', 0, '/',
- ',', 'm', 'k', 'l', '.', 0, 0, '-', '0', 0, 0, '-', 'p', 'o',
+ ',', 'm', 'k', 'l', '.', 0, 0, '-', '0', 0, 0, '=', '[', 'p',
'.', ',', 'l', ';', '/', 0, 0, '/', '.', ';', '\'', 0, 0, 0,
'0', '9', 0, 0, '-', 'p', 'o', '1', '`', 0, 0, '2', 'q', 0,
'2', '1', 0, 0, '3', 'w', 'q', '3', '2', 0, 0, '4', 'e', 'w',
'4', '3', 0, 0, '5', 'r', 'e', '5', '4', 0, 0, '6', 't', 'r',
'6', '5', 0, 0, '7', 'y', 't', '7', '6', 0, 0, '8', 'u', 'y',
'8', '7', 0, 0, '9', 'i', 'u', '9', '8', 0, 0, '0', 'o', 'i',
- ';', 'l', 'o', 'p','\'', '/', '.', '=', '-', 0, 0, 0, ']', '[',
+ ';', 'l', 'p', '[','\'', '/', '.', '=', '-', 0, 0, 0, ']', '[',
'[', 'p', '-', '=', ']', '\'',';', '\\', 0, 0, 'a', 'z', 0, 0,
']', '[', '=', 0, 0, '#','\'', '`', 0, 0, 0, '1', 0, 0,
'a', 0, 'q', 'w', 's', 'z','\\', 'b', 'v', 'g', 'h', 'n', 0, 0,
@@ -990,7 +990,7 @@ static const uint8_t US_Qwerty[47*7] =
'x', 'z', 's', 'd', 'c', 0, 0, 'y', 't', '6', '7', 'u', 'h', 'g',
'z', 0, 'a', 's', 'x', 0, 0,
};
-static const uint8_t Dvorak[48*7] =
+static const uint8_t Dvorak[47*7] =
{
'\'', 0, '1', '2', ',', 'a', 0, ',','\'', '2', '3', '.', 'o', 'a',
'-', 's', '/', '=', 0, 0, 'z', '.', ',', '3', '4', 'p', 'e', 'o',