Closed gersomvg closed 8 years ago
Haha, sorry for the pull request hell above. I thought: hey, let's also add a test case, but I didn't account for all those calculated hashes to change. Hopefully this last commit passes the checks successfully. I should have ran that Travis CI build on my local, but I didn't have any experience with running those builds yet. And although this is a minor fix, it is my first code contribution to an open source project, so please be patient 😎
Thanks for the PR! Nice bugfix and thanks for adding a test case! No worries, that's what CI is for 😉
Looks like there's just a typo remaining in one of the test cases.
The remaining typo is actually the bug I found. When you do
.a extends .b{
instead of
.a extends .b {
it will add the last character of the hash two times. So .class_HASH
becomes .class_HASHH
. The fact that this happened in the last commit before your comment shows that my regex fix is not working correctly. I will do another try..
It is not the regex. I will have a look at it after today... I don't mind diving deeper into the code.
Ready for merge!
Ah, I see. Thanks again!
This syntax was not supported: .a extends .b{} because a space was missing between ‘.b’ and ‘{‘