string.format
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -23,3 +23,3 @@ /* jslint node: true */ | ||
replace = eval(capture); | ||
replace = JSON.decycled(replace); | ||
replace = JSON.decycled(replace,{dates:false,regxep:false}); | ||
if(typeof replace === 'string'){ | ||
@@ -38,3 +38,3 @@ replace = replace.replace(/(^\"|\"$)/g,'').replace(/(\\n|\\r)/g,'\n').replace(/\\t/g,'\t'); | ||
replace = eval('params'+capture); | ||
replace = JSON.decycled(replace); | ||
replace = JSON.decycled(replace,{dates:false,regxep:false}); | ||
if(typeof replace === 'string'){ | ||
@@ -41,0 +41,0 @@ replace = replace.replace(/(^\"|\"$)/g,'').replace(/(\\n|\\r)/g,'\n').replace(/\\t/g,'\t'); |
{ | ||
"name": "string.format", | ||
"description": "String prototype method -> 'Hello {name}!'.format({name:'Homer'});", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Bifuer", |
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
6576