.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / stylelint / lib / rules / findMediaOperator.js
1 "use strict";
2
3 const rangeOperatorRegex = /[^><](>=?|<=?|=)/g;
4
5 module.exports = function(atRule, cb) {
6   if (atRule.name.toLowerCase() !== "media") {
7     return;
8   }
9
10   const params = atRule.params;
11   let match;
12   while ((match = rangeOperatorRegex.exec(params)) !== null) {
13     cb(match, params, atRule);
14   }
15 };