Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the ordering so that more specialised files are correctly picked #103

Merged
merged 2 commits into from
May 8, 2019

Conversation

aqeelvn
Copy link
Contributor

@aqeelvn aqeelvn commented Mar 2, 2018

When importing globs(*s) the current ordering of EXTENSIONS is not correct.

For example if there is a .scss.erb file when a glob is expanded, it should be imported by ERBExtension.new(".scss.erb") but the current ordering of EXTENSIONS picks Extension.new(".scss") which would then fail to parse the .erb.

I have re-ordered EXTENSIONS so that more specialised extensions appear first.

@aqeelvn aqeelvn closed this Mar 5, 2018
@aqeelvn aqeelvn reopened this Mar 5, 2018
@davidstosik
Copy link

👍
Anyone?

@bolandrm
Copy link
Member

is it possible to add a test case here?

@guilleiguaran
Copy link

We would like to see this merged before of switching to sassc-rails as the default for Rails 6, there is any chance to get this finished soon?

@aqeelvn
Copy link
Contributor Author

aqeelvn commented Mar 13, 2019

Sorry for taking so long to give this another go 🙏

@bolandrm I have added a test that ensures my fix works. What do you think?

@bolandrm bolandrm merged commit cd6e779 into sass:master May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants