Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-bem-linter

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-bem-linter - npm Package Compare versions

Comparing version 2.5.1 to 2.6.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

=== 2.6.0 (September 26, 2016)
* Allow component selector patterns without `{componentName}` interpolation.
=== 2.5.1 (May 1, 2016)

@@ -2,0 +6,0 @@

2

lib/to-interpolated-regexp.js

@@ -6,3 +6,3 @@ module.exports = function(source) {

try {
return new RegExp(splitSource[0] + componentName + splitSource[1]);
return new RegExp(splitSource.length > 1 ? splitSource[0] + componentName + splitSource[1] : splitSource[0]);
} catch (e) {

@@ -9,0 +9,0 @@ throw new Error('"' + source + '" does not produce a valid regular expression');

{
"name": "postcss-bem-linter",
"version": "2.5.1",
"version": "2.6.0",
"description": "A BEM linter for postcss",

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

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