Comparing version 2.2.1 to 2.2.2
@@ -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 @@ ================== |
@@ -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 | ||
} | ||
} |
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
223515
4483