Comparing version 0.5.2 to 0.5.3
@@ -51,3 +51,4 @@ /* jshint node: true */ | ||
(firstChar == '{' && lastChar == '}') || | ||
(firstChar == '[' && lastChar == ']'); | ||
(firstChar == '[' && lastChar == ']') || | ||
(firstChar == '"' && lastChar == '"'); | ||
@@ -54,0 +55,0 @@ if (shouldParse) { |
@@ -5,3 +5,3 @@ { | ||
"author": "Damon Oehlman <damon.oehlman@gmail.com>", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"dependencies": {}, | ||
@@ -8,0 +8,0 @@ "devDependencies": { |
@@ -82,3 +82,3 @@ var test = require('tape'); | ||
parse(JSON.stringify('2007bf44-56a5-4a77-9b1e-b43cfac9c70f')), | ||
'\"2007bf44-56a5-4a77-9b1e-b43cfac9c70f\"', | ||
'2007bf44-56a5-4a77-9b1e-b43cfac9c70f', | ||
'correctly parse uuid' | ||
@@ -104,2 +104,7 @@ ); | ||
); | ||
}); | ||
test('correctly parse JSONified string', function(t) { | ||
t.plan(1); | ||
t.equal(parse(JSON.stringify('hello')), 'hello', 'parsed ok'); | ||
}); |
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
31510
685