Closed SmashManiac closed 11 months ago
Whether colon is a valid dir char depends on the OS. In Linux, colons are valid directory chars. It seems highly unlikely that anyone would want a colon in their destination path, especially in the case of a static site. Therefore the most straightforward solution would be to strip it
Describe the bug When a colon appears in the metadata referenced by the
pattern
property, it causes Metalsmith to crash at best, or hang indefinitely at worse, depending on the length of the processed metadata.Crash message example:
To Reproduce Steps to reproduce the behavior:
npm install
node index
Expected behavior Special characters in the permalink pattern metadata should be gracefully processed.
Environment
Additional context The issue was introduced in v2.0.0.