Comparing version 0.40.1 to 0.40.2
@@ -158,7 +158,9 @@ | ||
isPartOfSelector: function() { | ||
switch (this.prev && this.prev.type) { | ||
var tok = this.prev; | ||
switch (tok && tok.type) { | ||
// #for | ||
case 'color': | ||
return 2 == tok.val.raw.length; | ||
// .or | ||
case '.': | ||
// #for | ||
case 'color': | ||
// [is] | ||
@@ -736,3 +738,3 @@ case '[': | ||
var captures; | ||
if (captures = /^#([a-fA-F0-9]{1})(?![a-fA-F0-9])/.exec(this.str)) { | ||
if (captures = /^#([a-fA-F0-9]{1})[ \t]*/.exec(this.str)) { | ||
this.skip(captures); | ||
@@ -752,3 +754,3 @@ var n = parseInt(captures[1] + captures[1], 16) | ||
var captures; | ||
if (captures = /^#([a-fA-F0-9]{2})(?![a-fA-F0-9])/.exec(this.str)) { | ||
if (captures = /^#([a-fA-F0-9]{2})[ \t]*/.exec(this.str)) { | ||
this.skip(captures); | ||
@@ -768,3 +770,3 @@ var n = parseInt(captures[1], 16) | ||
var captures; | ||
if (captures = /^#([a-fA-F0-9]{3})(?![a-fA-F0-9])/.exec(this.str)) { | ||
if (captures = /^#([a-fA-F0-9]{3})[ \t]*/.exec(this.str)) { | ||
this.skip(captures); | ||
@@ -787,3 +789,3 @@ var rgb = captures[1] | ||
var captures; | ||
if (captures = /^#([a-fA-F0-9]{4})(?![a-fA-F0-9])/.exec(this.str)) { | ||
if (captures = /^#([a-fA-F0-9]{4})[ \t]*/.exec(this.str)) { | ||
this.skip(captures); | ||
@@ -807,3 +809,3 @@ var rgb = captures[1] | ||
var captures; | ||
if (captures = /^#([a-fA-F0-9]{6})(?![a-fA-F0-9])/.exec(this.str)) { | ||
if (captures = /^#([a-fA-F0-9]{6})[ \t]*/.exec(this.str)) { | ||
this.skip(captures); | ||
@@ -826,3 +828,3 @@ var rgb = captures[1] | ||
var captures; | ||
if (captures = /^#([a-fA-F0-9]{8})(?![a-fA-F0-9])/.exec(this.str)) { | ||
if (captures = /^#([a-fA-F0-9]{8})[ \t]*/.exec(this.str)) { | ||
this.skip(captures); | ||
@@ -829,0 +831,0 @@ var rgb = captures[1] |
{ | ||
"name": "stylus", | ||
"description": "Robust, expressive, and feature-rich CSS superset", | ||
"version": "0.40.1", | ||
"version": "0.40.2", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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
9645
253982