Skip to content

Commit

Permalink
chore: fix update-readme to avoid multiple consecutive blank lines (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Nov 30, 2021
1 parent 808ad35 commit 0b8c846
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions README.md
Expand Up @@ -230,7 +230,6 @@ Milos Djermanovic
</a>
</td></tr></tbody></table>


### Reviewers

The people who review and implement new features.
Expand All @@ -247,9 +246,6 @@ Toru Nagashima
</a>
</td></tr></tbody></table>




### Committers

The people who review and fix bugs and help triage issues.
Expand Down Expand Up @@ -286,7 +282,6 @@ Nitin Kumar
</a>
</td></tr></tbody></table>


<!--teamend-->

## <a name="sponsors"></a>Sponsors
Expand Down
3 changes: 3 additions & 0 deletions tools/update-readme.js
Expand Up @@ -123,5 +123,8 @@ let newReadme = readme.replace(/<!--teamstart-->[\w\W]*?<!--teamend-->/u, ejs.re

newReadme = newReadme.replace(/<!--sponsorsstart-->[\w\W]*?<!--sponsorsend-->/u, formatSponsors(allSponsors));

// replace multiple consecutive blank lines with just one blank line
newReadme = newReadme.replace(/(?<=^|\n)\n{2,}/gu, "\n");

// output to the file
fs.writeFileSync(README_FILE_PATH, newReadme, "utf8");

0 comments on commit 0b8c846

Please sign in to comment.