Password generator written with Astro

fix: tailing space on all passwords

Changed files
+2 -1
src
pages
+2 -1
src/pages/index.astro
···
.split("\n")
.filter((word) => word.trim() !== "");
let password = ""
-
for (let i = 0; i < 5; i++) {
+
for (let i = 0; i < 4; i++) {
const randomWord = Math.floor(Math.random() * words.length);
password += words[randomWord] + " "
}
+
password += words[randomWord]
display.textContent = "•".repeat(password.length)
display.style.setProperty("color", "#ffffff")
wrapper.style.setProperty("border-color", "#ffffff")