stylecow-core
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -11,4 +11,4 @@ "use strict"; | ||
if (reader.currToken === HASH) { | ||
if (/^[0-9a-fA-F]+$/.test(reader.currStr)) { | ||
return (new stylecow.Hex(reader.data())).setName(reader.getStringAndMove()); | ||
if (/^#[0-9a-fA-F]+$/.test(reader.currStr)) { | ||
return (new stylecow.Hex(reader.data())).setName(reader.getStringAndMove().substr(1)); | ||
} | ||
@@ -15,0 +15,0 @@ |
@@ -11,3 +11,3 @@ "use strict"; | ||
if (reader.currToken === HASH) { | ||
return (new stylecow.IdSelector(reader.data())).setName(reader.getStringAndMove()); | ||
return (new stylecow.IdSelector(reader.data())).setName(reader.getStringAndMove().substr(1)); | ||
} | ||
@@ -14,0 +14,0 @@ } |
@@ -236,3 +236,3 @@ "use strict"; | ||
if (this.currChar === '#') { | ||
let token = [HASH, this.line, this.col, '']; | ||
let token = [HASH, this.line, this.col, '#']; | ||
@@ -239,0 +239,0 @@ while ((isEscaped(this.nextChar, this.nextNextChar) || isName(this.nextChar)) && this.next()) { |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"engines": { | ||
@@ -32,4 +32,4 @@ "node": ">=4.0" | ||
"devDependencies": { | ||
"mocha": "^2.4.5" | ||
"mocha": "^2.5.3" | ||
} | ||
} |
@@ -8,2 +8,3 @@ var assert = require('assert'); | ||
describe('cases/' + test.name, function() { | ||
it('should match output.css', function() { | ||
@@ -10,0 +11,0 @@ //test.writeString() |
@@ -43,4 +43,44 @@ { | ||
] | ||
}, | ||
{ | ||
"type": "Rule", | ||
"children": [ | ||
{ | ||
"type": "Selectors", | ||
"children": [ | ||
{ | ||
"type": "Selector", | ||
"children": [ | ||
{ | ||
"type": "TypeSelector", | ||
"name": "div" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "Block", | ||
"children": [ | ||
{ | ||
"type": "Declaration", | ||
"name": "filter", | ||
"vendor": "ms", | ||
"children": [ | ||
{ | ||
"type": "Value", | ||
"children": [ | ||
{ | ||
"type": "String", | ||
"name": "progid:DXImageTransform.Microsoft.Gradient(GradientType=0,StartColorStr=#f0f0f0,EndColorStr=#fff)" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
59764432
296
388141