Skip to content

Commit

Permalink
trimmed output so it's all one string
Browse files Browse the repository at this point in the history
  • Loading branch information
CollapsingStar committed Apr 26, 2024
1 parent cf20c5a commit 0523ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/passwordGen.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const passwordGen = async (
const wordList = await loadWordList();
let passphrase = "";
for (let i = 0; i < length; i++) {
passphrase += wordList[Math.floor(Math.random() * wordList.length)];
passphrase += wordList[Math.floor(Math.random() * wordList.length)].trim();
if (i < length - 1) passphrase += "-";
}
return passphrase;
Expand Down

0 comments on commit 0523ddb

Please sign in to comment.