Skip to content

Commit

Permalink
fix: linting (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Aug 15, 2022
1 parent 76b56ef commit 850038e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/extract_description.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ function extractDescription (d) {
// the first block of text before the first heading
// that isn't the first line heading
d = d.trim().split('\n')
for (var s = 0; d[s] && d[s].trim().match(/^(#|$)/); s++) {
;
let s = 0
while (d[s] && d[s].trim().match(/^(#|$)/)) {
s++
}
var l = d.length
for (var e = s + 1; e < l && d[e].trim(); e++) {
;
const l = d.length
let e = s + 1
while (e < l && d[e].trim()) {
e++
}
return d.slice(s, e).join(' ').trim()
}

0 comments on commit 850038e

Please sign in to comment.