Skip to content

Commit

Permalink
Fix links when added from bottom of the file
Browse files Browse the repository at this point in the history
  • Loading branch information
mindsers committed Sep 1, 2022
1 parent 0d5a65e commit 74d44db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/add-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ exports.addLinks = links => entry => {
let results = null
while ((results = linkRegex.exec(text)) != null) {
const link = links.find(element => element.includes(results[1]))
tempText = `${tempText}\n${link}`
tempText = `${tempText}\n\n${link}`
}

return { ...entry, text: tempText.trim() }
Expand Down

0 comments on commit 74d44db

Please sign in to comment.