ie8linter
ie8linter copied to clipboard
More sophisticated regEx
I noticed was that your regular expressions are very naive: e.g. it picked up the following rule:
.some-rule {
background: #fff url('../img/bg_creme.png') repeat-x 0 0;
}
and —because the regEx simply matches rem
in the property value— warned about using REM.
One (still simplistic) way to improve this specific regex would be to check for /\drem/
.
This would probably go for most other tests...
right, that's true.
If you have some spare time and want to submit a Pull Request, it is very straight forward to edit the regex. There is a hash of them here: https://github.com/israelidanny/ie8linter/blob/master/specs/unsupported-css.js
otherwise I'll probably do it over the course of the weeek.
Yup, I'll see what I can do.