Closed Autodidact24 closed 5 months ago
Resolving #1369
We can use the encodeURIComponent function to encode any spaces in the node.url property before passing it to the path.resolve function.
encodeURIComponent
node.url
path.resolve
This should ensure that image URLs with spaces are resolved correctly and passed to the publish function.
Thanks, @Autodidact24! Can you please add a test case for the changes introduced on this pull request? Sorry for the late reply.
By the way, why does path.resolve need arguments to be URL-encoded? 🤔
Resolving #1369
We can use the
encodeURIComponent
function to encode any spaces in thenode.url
property before passing it to thepath.resolve
function.This should ensure that image URLs with spaces are resolved correctly and passed to the publish function.