Closed simoneldevig closed 7 years ago
@simoneldevig hi! Thank you for PR.
I think we can use String.prototype.includes
instead of two equality checks. Can you do it?
@7rulnik I've tried to change it to use includes, but since the text that does not contain flexibility-disable is undefined it means that it would require an ekstra check anyways? :-)
@simoneldevig you can use default argument rule.some(({prop, text = ''}) =>
@7rulnik I've changed the check to use endsWith since I ran in some issues with includes on not loud comments. I also added a test for loud comments as well :-)
@simoneldevig nice! Thank you for tests. I will merge and release it at saturday.
It is very important the add support for loud comments when working in production environments since normal comments are removed when compiling sass with as compressed.