* run the core tests on windows * fix glob with windows path seperator * always use slash when slicing serviceClass matches ..and add comment explaining why we need to do this * strip line endings (+ any other whitspace) before base64 encoding Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
8 lines
143 B
JavaScript
8 lines
143 B
JavaScript
function svg2base64(svg) {
|
|
return `data:image/svg+xml;base64,${Buffer.from(svg.trim()).toString(
|
|
'base64'
|
|
)}`
|
|
}
|
|
|
|
export { svg2base64 }
|