has-pseudo-element
Advanced tools
Comparing version 1.0.0 to 3.3.0
13
index.js
@@ -1,12 +0,15 @@ | ||
'use strict'; | ||
'use strict' | ||
var pseudoElements = require('pseudo-elements'); | ||
var pseudoElements = require('pseudo-elements') | ||
module.exports = function hasPseudoElement(selector) { | ||
if (typeof selector != 'string') { | ||
throw new TypeError('has-pseudo-element expects a string'); | ||
throw new TypeError('has-pseudo-element expects a string') | ||
} | ||
var pseudoElementRegex = new RegExp('::?' + pseudoElements().join('|::?'), 'ig'); | ||
return pseudoElementRegex.test(selector); | ||
var pseudoElementRegex = new RegExp( | ||
'::?' + pseudoElements().join('|::?'), | ||
'ig' | ||
) | ||
return pseudoElementRegex.test(selector) | ||
} |
@@ -5,3 +5,3 @@ { | ||
"author": "John Otander", | ||
"version": "1.0.0", | ||
"version": "3.3.0", | ||
"main": "index.js", | ||
@@ -29,3 +29,4 @@ "directories": { | ||
"mocha": "*" | ||
} | ||
}, | ||
"gitHead": "5604528037164f4b8eb81e8a5215c433c9814407" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41
3991
5