style-value-types
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -48,3 +48,3 @@ "use strict"; | ||
var matches = v.match && v.match(FLOAT_REGEX); | ||
return (matches !== undefined && matches.constructor === Array && matches.length > 1); | ||
return (matches.constructor === Array && matches.length > 1); | ||
}, | ||
@@ -58,3 +58,3 @@ parse: function (v) { | ||
var counter = 0; | ||
var template = prop.replace(FLOAT_REGEX, function () { return generateToken("" + counter++); }); | ||
var template = prop.replace(FLOAT_REGEX, function () { return generateToken(counter++); }); | ||
return function (v) { | ||
@@ -64,3 +64,3 @@ var output = template; | ||
if (v.hasOwnProperty(key)) { | ||
output = output.replace(generateToken(key), v[key].toString()); | ||
output = output.replace(generateToken(key), v[key]); | ||
} | ||
@@ -67,0 +67,0 @@ } |
{ | ||
"name": "style-value-types", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Parsers, transformers and tests for special value types, eg: %, hex codes etc.", | ||
"main": "index.js", | ||
"main": "lib/index.js", | ||
"types": "src/index.d.ts", | ||
@@ -7,0 +7,0 @@ "files": [ |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
25707
6
450
1
0