Merge branch 'master' of ssh://gitea.calebfontenot.com:25566/CCF_100/NoMoreAcronyms
This commit is contained in:
commit
ed1e702baa
2
main.cjs
2
main.cjs
@ -275,7 +275,7 @@ global.madlibNextPrompt = function madlibNextPrompt(client, iteration, selectedS
|
||||
let vowelArray = ["a", "e", "i", "o", "u"];
|
||||
aAn = "a ";
|
||||
for (let i = 0; i < vowelArray.length; ++i) {
|
||||
if (phrase[iteration].toLowerCase().startsWith(vowelArray)) {
|
||||
if (phrase[iteration].toLowerCase().charAt(0) == (vowelArray[i].charAt(0))) {
|
||||
aAn = "an ";
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user