diff --git a/metadata/screenshot-01.png b/metadata/screenshot-01.png index 056765a..091ed00 100644 Binary files a/metadata/screenshot-01.png and b/metadata/screenshot-01.png differ diff --git a/src/index.tsx b/src/index.tsx index 2dbb1a4..565dc44 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,7 +4,7 @@ import { randomInt } from "crypto"; export default async function Command() { const pass = generate(); await Clipboard.copy(pass); - + await showHUD("Password copied to clipboard"); } @@ -14,18 +14,18 @@ function generate() { const lowerVowels = "aeiouy".split(""); const upperVowels = "AEUY".split(""); - const numberPositions: {[index: number]: number} = { + const numberPositions: { [index: number]: number } = { 1: 1, 2: 7, 3: 13, 4: 6, 5: 12, - 6: 18 + 6: 18, }; // choose position of number and upper case letter const numPosKey = randomInt(2, 7); - const NumberPosition = numberPositions[numPosKey]; + const NumberPosition = numberPositions[numPosKey]; let uppercasePos = randomInt(1, 19); if (uppercasePos === numPosKey) { @@ -50,7 +50,6 @@ function generate() { } passwordSection += randomInt(1, 10); } else { - if (count % 3 === 0) { // vowel if (uppercasePos === i) { @@ -72,7 +71,6 @@ function generate() { if (i % 6 === 0) { passwordSection += "-"; } - } return passwordSection; @@ -80,4 +78,4 @@ function generate() { function randomFromArray(array: any[]) { return array[randomInt(1, array.length)]; -} \ No newline at end of file +}