mirror of
https://github.com/thangisme/notes.git
synced 2025-10-14 18:54:31 -04:00
Initial commit
This commit is contained in:
15
node_modules/stylelint/lib/rules/findMediaOperator.js
generated
vendored
Normal file
15
node_modules/stylelint/lib/rules/findMediaOperator.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
"use strict"
|
||||
|
||||
const rangeOperatorRegex = /[^><](>=?|<=?|=)/g
|
||||
|
||||
module.exports = function (atRule, cb) {
|
||||
if (atRule.name.toLowerCase() !== "media") {
|
||||
return
|
||||
}
|
||||
|
||||
const params = atRule.params
|
||||
let match
|
||||
while ((match = rangeOperatorRegex.exec(params)) !== null) {
|
||||
cb(match, params, atRule)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user