Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinvanrijn authored May 25, 2024
1 parent 03f3447 commit c5f0098
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,11 @@ function writeReadme() {
}

// Readability & consistency
d[k].description = d[k].description.replace(/\s+/g,' ').replace(/\!\[[ -~]*?\]\([ -~]+?\)/g,'').replace(/\[([ -~]*?)\]\([ -~]+?\)/g,'$1').trim().replace(/[Nn]ode\.js|[Nn]ode(?!s)/g,'Node').replace(/javascript/ig,'JavaScript').replace(/htmlparser2/ig,'htmlparser2').replace(/([^!.?]$)/,'$1.')
d[k].description = d[k].description.replace(/\s+/g,' ').replace(/\!\[[ -~]*?\]\([ -~]+?\)/g,'').replace(/\[([ -~]*?)\]\([ -~]+?\)/g,'$1').trim().replace(/[Nn]ode\.js|[Nn]ode(?!s)/g,'Node').replace(/javascript/ig,'JavaScript').replace(/([^!.?]$)/,'$1.')
if(d[k].description !== '') {
d[k].description = d[k].description[0].toUpperCase() + d[k].description.slice(1)
d[k].description = d[k].description.replace(/^Npm/,'npm')
d[k].description = d[k].description.replace(/^Htmlparser2/,'htmlparser2')
}
if(d[k].description === '.') {
d[k].description = ''
Expand Down

0 comments on commit c5f0098

Please sign in to comment.