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

Handle case if import with brackets is passed #59

Closed
wants to merge 7 commits into from

Conversation

alex-knyazev
Copy link

No description provided.

@the-stas
Copy link

@Semigradsky @alexgagnon can you please take a look?
thanks

* remove spaces after left and before right bracket if spaces exist
*/
function trimNearBrackets(string) {
return string.replace('( ', '(').replace(' )', ')')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if it will be two or more spaces?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point!
@alex-knyazev I guess we need trim all spaces

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Semigradsky fixed, please check, thanks

@the-stas
Copy link

the-stas commented Feb 6, 2022

@jonathantneal can you please take a look?
thanks

@the-stas
Copy link

@Semigradsky can you please take a look?
thanks

lipemat added a commit to lipemat/js-boilerplate that referenced this pull request May 17, 2022
Someday the pull request may get merged. Until then we use the fork.

csstools/postcss-custom-media#59
lipemat added a commit to lipemat/postcss-boilerplate that referenced this pull request May 17, 2022
Someday the pull request may get merged. Until then we use the fork.

csstools/postcss-custom-media#59
@romainmenke
Copy link
Member

Hi @alex-knyazev, @the-stas, @lipemat,

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
lipemat added a commit to lipemat/js-boilerplate that referenced this pull request Jun 5, 2022
Fix issues with whitespace in `@media( --var )` which previously
required a fork.

csstools/postcss-custom-media#59 (comment)
lipemat added a commit to lipemat/postcss-boilerplate that referenced this pull request Jun 5, 2022
Fixes issues with whitespace in `@media( --var )` which previously
required a fork.

csstools/postcss-custom-media#59 (comment)
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

4 participants