Skip to content

Commit

Permalink
it's includes() not contains()!!
Browse files Browse the repository at this point in the history
  • Loading branch information
FallBackITA27 committed Apr 11, 2024
1 parent a7c8ca0 commit 8b6aba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkwpp-parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ document.getElementById("readInput").addEventListener("click", async function()
for (let line of parserData) {
let keywords = line.toLowerCase().split(" ").filter(r=>r !== "");
console.log(keywords);
if (keywords[0].contains("name")) {
if (keywords[0].includes("name")) {
currentSubmission = {
name: keywords.slice(1,keywords.length).join(" "),
date: "",
Expand Down

0 comments on commit 8b6aba4

Please sign in to comment.