Skip to content

Commit

Permalink
Typo in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jdeniau committed Jan 10, 2024
1 parent 4c3b564 commit 1113fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/find-line-in-file.js
Expand Up @@ -8,7 +8,7 @@ export default function findLineInFile(packageJsonContent, jsonKey, needle) {
return null;
}

// lines[0] does contain every line preceding the wanted package. Let's count the "newline" character
// lines[1] does contain every line preceding the wanted package. Let's count the "newline" character
const newlineMatch = lines[1].match(/\n/gm);

// if there is not match, we are probably on a single-line JSON file: everything is on the first line
Expand Down

0 comments on commit 1113fed

Please sign in to comment.