Skip to content

Commit

Permalink
Fix tests on addLinks method
Browse files Browse the repository at this point in the history
  • Loading branch information
mindsers committed Mar 10, 2024
1 parent 64ff230 commit ebbb2a5
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\n${link}`
tempText = `${tempText}\n${link}`
}

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

0 comments on commit ebbb2a5

Please sign in to comment.