cml
cml copied to clipboard
handle paths with spaces
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.
This should ensure that image URLs with spaces are resolved correctly and passed to the publish function.
Test Comment

Test Comment


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? 🤔