Skip to content

Commit

Permalink
🐛 Fix: custom url template encode bug
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #1112
  • Loading branch information
Molunerfinn committed Apr 17, 2023
1 parent 7363be7 commit 063962d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/utils/pasteTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export default (style: IPasteStyle, item: ImgInfo, customLink: string | undefine
HTML: `<img src="${url}"/>`,
URL: url,
UBB: `[IMG]${url}[/IMG]`,
Custom: formatCustomLink(_customLink, item)
Custom: formatCustomLink(_customLink, {
...item,
url
})
}
return tpl[style]
}

0 comments on commit 063962d

Please sign in to comment.