Skip to content

Commit

Permalink
Fix bug in grammar header detection
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jun 6, 2024
1 parent 255c941 commit 2b07612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/algorithm-format-check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ for (const filename of filenames) {
// Still grammar, not algorithm
continue;
}
if (lines[i + 1] !== "") {
if (rest.trim() === "" && lines[i + 1] !== "") {
console.log(
`No empty space after grammar ${grammarName} header in '${filename}'`
);
Expand Down

0 comments on commit 2b07612

Please sign in to comment.