ixkaito / astro-relative-links

Build Astro with relative links.
MIT License
76 stars 5 forks source link

Fix bug when pathname includes spaces #8

Closed scratchyone closed 11 months ago

scratchyone commented 11 months ago

When calling globSync, this previously used dir.pathname, which returns an invalid value (contains URL encoding) for pathnames with spaces. I switched it for outDirPath, which represents the same value but doesn't have that issue.

ixkaito commented 11 months ago

@scratchyone Thanks! Looks good!