Skip to content

Fix non-relative pathname detection #74

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

Merged
merged 2 commits into from
Aug 18, 2016

Conversation

dallonf
Copy link

@dallonf dallonf commented Jul 14, 2016

When composing a style from a CSS file in a scoped module, the hook would previously not detect that this was not a relative path due to it starting with @.

A quick trip to StackOverflow later, I think this updated regex will now correctly detect all non-relative paths.

@nordsimon
Copy link

Yes please, merge this. Just ran in to the same problem and found the very same issue

@mightyaleksey mightyaleksey merged commit 67761f0 into css-modules:master Aug 18, 2016
@mightyaleksey
Copy link
Member

mightyaleksey commented Aug 18, 2016

Oh, sorry guys, didn't notice it. Anyways published it in 4.0.2.

Thank you for your effort!

@nordsimon
Copy link

Great, and thank you @dallonf for providing a good solution

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.

3 participants