Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,6 @@ | ||
### Version 1.0.1 (2015-06-20) ### | ||
- Fixed: Declared an undeclared variable. | ||
### Version 1.0.0 (2015-02-26) ### | ||
@@ -2,0 +7,0 @@ |
@@ -10,3 +10,12 @@ // Copyright 2014 Simon Lydell | ||
var code = fs.readFileSync("index.js").toString() | ||
code = code.replace(/\/.+\/.+/, "/" + regex.source.replace(/\//g, "\\/") + "/g") | ||
var regexString = "" | ||
// Older V8 versions are buggy and don’t escape slashes correctly. | ||
if (RegExp("/").source === "/") { | ||
regexString = "/" + regex.source.replace(/\//g, "\\/") + "/g" | ||
} else { | ||
regexString = regex.toString() | ||
} | ||
code = code.replace(/\/.+\/.+/, regexString) | ||
fs.writeFileSync("index.js", code) |
@@ -9,3 +9,3 @@ // Copyright 2014, 2015 Simon Lydell | ||
module.exports.matchToToken = function(match) { | ||
token = {type: "invalid", value: match[0]} | ||
var token = {type: "invalid", value: match[0]} | ||
if (match[ 1]) token.type = "string" , token.closed = !!match[3] | ||
@@ -12,0 +12,0 @@ else if (match[ 4]) token.type = "comment", token.closed = !!match[5] |
{ | ||
"name": "css-tokens", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": "Simon Lydell", | ||
@@ -21,5 +21,5 @@ "license": "MIT", | ||
"devDependencies": { | ||
"coffee-script": "^1.8.0", | ||
"mocha": "^2.0.1" | ||
"coffee-script": "~1.9.3", | ||
"mocha": "^2.2.5" | ||
} | ||
} |
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
28492
718