Socket
Socket
Sign inDemoInstall

stylus

Package Overview
Dependencies
Maintainers
2
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylus - npm Package Compare versions

Comparing version 0.40.1 to 0.40.2

20

lib/lexer.js

@@ -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": [

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