Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

Conversation

desandro
Copy link
Contributor

This commit fixes the bug with space separated values. Previously, 0 10px 20px 30px would be exported with commas: 0,10px,20px,30px. This commit preverses spaces, to export 0 10px 20px 30px as expected.


Hi! We use postcss-custom-properties a bunch here at @UrbanCompass ! Thank you for all your work on PostCSS!

I recently came across a bug using exportTo. Multi-part values like 0 10px 20px 30px would be exported with commas instead of spaces: 0,10px,20px,30px. Exported values would look even more wild if there were commas already. For example,

// original
border-color, background, box-shadow, color
// exported
border-color,,,background,,,box-shadow,,,color

This PR resolves that. Tests updated as well 😸

This commit fixes the bug with space separated values. Previously, `0 10px 20px 30px` would be exported with commas: `0,10px,20px,30px`. This commit preverses spaces, to export `0 10px 20px 30px` as expected.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants