diff --git a/app/js/diceware.js b/app/js/diceware.js index cd3be2d..2cea62a 100644 --- a/app/js/diceware.js +++ b/app/js/diceware.js @@ -25,7 +25,7 @@ Diceware.prototype.load = function(callback) { if (line === '-----BEGIN PGP SIGNATURE-----') { break; } - var myregexp = /^\d+\s*([^\s]+)$/; + var myregexp = /^\s*\d+\s*([^\s]+)\s*$/; var match = myregexp.exec(line); if (match != null) { // matched text: match[0]