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

pug-lexer

Package Overview
Dependencies
Maintainers
2
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-lexer - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

6

History.md

@@ -0,1 +1,7 @@

2.2.2 / 2016-09-07
==================
* Support non-standard class names that start with two hyphens in class
literals, most notably used in Bemto
2.2.1 / 2016-08-29

@@ -2,0 +8,0 @@ ==================

4

index.js

@@ -406,3 +406,3 @@ 'use strict';

className: function() {
var tok = this.scan(/^\.(\-?[_a-z][_a-z0-9\-]*)/i, 'class');
var tok = this.scan(/^\.(-?-?[_a-z][_a-z0-9\-]*)/i, 'class');
if (tok) {

@@ -414,3 +414,3 @@ this.tokens.push(tok);

if (/^\.\-/i.test(this.input)) {
this.error('INVALID_CLASS_NAME', 'If a class name begins with a "-", it must be followed by a letter or underscore.');
this.error('INVALID_CLASS_NAME', 'If a class name begins with a "-" or "--", it must be followed by a letter or underscore.');
}

@@ -417,0 +417,0 @@ if (/^\.[0-9]/i.test(this.input)) {

{
"name": "pug-lexer",
"version": "2.2.1",
"version": "2.2.2",
"description": "The pug lexer (takes a string and converts it to an array of tokens)",

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

{
"msg": "If a class name begins with a \"-\", it must be followed by a letter or underscore.",
"msg": "If a class name begins with a \"-\" or \"--\", it must be followed by a letter or underscore.",
"code": "PUG:INVALID_CLASS_NAME",
"line": 1,
"column": 1
}
}
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