From: Ian Coleman Date: Thu, 17 Nov 2016 00:34:09 +0000 (+1100) Subject: Duplicate card detection is case insensitive X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git;a=commitdiff_plain;h=5c653a12e7f76ce026c8953cba6753200dc3c6c3 Duplicate card detection is case insensitive --- diff --git a/src/js/index.js b/src/js/index.js index f354399..6a81601 100644 --- a/src/js/index.js +++ b/src/js/index.js @@ -869,10 +869,11 @@ var dupeTracker = {}; for (var i=0; i 0) { var dupeWord = "duplicates"; diff --git a/tests.js b/tests.js index c3d7418..a0de5fe 100644 --- a/tests.js +++ b/tests.js @@ -2673,6 +2673,23 @@ page.open(url, function(status) { words: 54, strength: "extremely strong", }, + // Case insensitivity to duplicate cards + { + entropy: "asAS", + type: "card (1 duplicate: AS)", + events: 2, + bits: 12, + words: 0, + strength: "extremely weak", + }, + { + entropy: "ASas", + type: "card (1 duplicate: as)", + events: 2, + bits: 12, + words: 0, + strength: "extremely weak", + }, ]; // use entropy page.evaluate(function() {