quick-format-unescaped
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -56,4 +56,3 @@ var safeStringify = require('fast-safe-stringify') | ||
} | ||
x = JSON.stringify(ss(args[a])) | ||
str += x.substr(1, x.length - 2) | ||
str += ss(args[a]) | ||
lastPos = i = i + 2 | ||
@@ -66,4 +65,3 @@ break | ||
str += f.slice(lastPos, i) | ||
x = JSON.stringify(String(args[a])) | ||
str += x.substr(1, x.length - 2) | ||
str += String(args[a]) | ||
lastPos = i = i + 2 | ||
@@ -70,0 +68,0 @@ break |
{ | ||
"name": "quick-format-unescaped", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Solves a problem with util.format", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,2 +52,4 @@ 'use strict'; | ||
// assert.equal(format(['%s', 'foo']), 'foo'); | ||
assert.equal(format(['%s', '\"quoted\"']), '\"quoted\"'); | ||
assert.equal(format(['%j', { s: '\"quoted\"' }]), '{\"s\":\"\\"quoted\\"\"}'); | ||
// assert.equal(format(['%s:%s']), '%s:%s'); | ||
@@ -54,0 +56,0 @@ // assert.equal(format(['%s:%s', undefined]), 'undefined:%s'); |
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
9461