Socket
Socket
Sign inDemoInstall

specificity

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

specificity - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "specificity",
"version": "0.3.0",
"version": "0.3.1",
"description": "Calculate the specificity of a CSS selector",

@@ -5,0 +5,0 @@ "keywords": [

@@ -48,3 +48,3 @@ var SPECIFICITY = (function() {

attributeRegex = /(\[[^\]]+\])/g,
idRegex = /(#[^\s\+>~\.\[:]+)/g,
idRegex = /(#[^\#\s\+>~\.\[:]+)/g,
classRegex = /(\.[^\s\+>~\.\[:]+)/g,

@@ -51,0 +51,0 @@ pseudoElementRegex = /(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,

@@ -55,2 +55,6 @@ var specificity = require('../'),

{ selector: '#home .\\[page\\]', expected: '0,1,1,0' }, /* <p id="home"><p class="[page]"></p></p> */
// Test repeated IDs
// https://github.com/keeganstreet/specificity/issues/29
{ selector: 'ul#nav#nav-main li.active a', expected: '0,2,1,3' },
];

@@ -57,0 +61,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc