1
0
mirror of https://github.com/thangisme/notes.git synced 2025-11-23 13:12:25 -05:00

Initial commit

This commit is contained in:
Patrick Marsceill
2017-03-09 13:16:08 -05:00
commit b7b0d0d7bf
4147 changed files with 401224 additions and 0 deletions

16
node_modules/stylelint/lib/utils/optionsMatches.js generated vendored Normal file
View File

@@ -0,0 +1,16 @@
/* @flow */
"use strict"
const matchesStringOrRegExp = require("./matchesStringOrRegExp")
/**
* Check if an options object's propertyName contains a user-defined string or
* regex that matches the passed in input.
*/
module.exports = function optionsMatches(
options/*: Object*/,
propertyName/*: string*/,
input/*: string*/
)/*: boolean*/ {
return !!(options && options[propertyName] && typeof input === "string" && matchesStringOrRegExp(input.toLowerCase(), options[propertyName]))
}