MCPcopy
hub / github.com/postcss/autoprefixer / check

Method check

lib/value.js:83–90  ·  view source on GitHub ↗

* Is declaration need to be prefixed

(decl)

Source from the content-addressed store, hash-verified

81 * Is declaration need to be prefixed
82 */
83 check(decl) {
84 let value = decl.value
85 if (!value.includes(this.name)) {
86 return false
87 }
88
89 return !!value.match(this.regexp())
90 }
91
92 /**
93 * Return function to fast find prefixed value

Callers 7

removeMethod · 0.45
toRemoveMethod · 0.45
processMethod · 0.45
value.test.jsFile · 0.45
selector.test.jsFile · 0.45
old-value.test.jsFile · 0.45

Calls 1

regexpMethod · 0.95

Tested by

no test coverage detected