Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Add fix for whitespace in media rules #71

Closed
wants to merge 1 commit into from

Conversation

knupska
Copy link

@knupska knupska commented Jul 19, 2021

This change aims to fix issue csstools/postcss-plugins#421 by adjusting the regex to factor in whitespace.

Some additional tests have been added that focus purely on confirming the whitespace handling.

@the-stas
Copy link

@knupska this is a duplication of #59

@knupska
Copy link
Author

knupska commented Jan 13, 2022

Apologies @the-stas, I never saw that due to the poor naming and the lack of an associated issue.

It's been a problem that I've been bitten by several times now, so as long as it finally gets fixed, then I'll be happy.

@romainmenke
Copy link
Member

Hi @knupska

This plugin was moved to the csstools mono repo : https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-custom-media#readme

This PR was a great start but we wanted to handle a few more edge cases.
The fix has been released in v8.0.1

https://github.com/csstools/postcss-plugins/blob/main/plugins/postcss-custom-media/CHANGELOG.md#801-june-3-2022

@romainmenke romainmenke closed this Jun 3, 2022
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.

None yet

3 participants