node-powertools
Advanced tools
Comparing version
@@ -164,2 +164,6 @@ (function (root, factory) { | ||
Powertools.template = function (string, template) { | ||
if (!string) { | ||
throw new Error('No string provided'); | ||
} | ||
return string.replace(/\{([\w\s\.]*)\}/g, function (match, key) { | ||
@@ -166,0 +170,0 @@ var value = getNestedValue(template, key); |
{ | ||
"name": "node-powertools", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Powerful assistive functions for Node and Browser environments.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -164,2 +164,6 @@ (function (root, factory) { | ||
Powertools.template = function (string, template) { | ||
if (!string) { | ||
throw new Error('No string provided'); | ||
} | ||
return string.replace(/\{([\w\s\.]*)\}/g, function (match, key) { | ||
@@ -166,0 +170,0 @@ var value = getNestedValue(template, key); |
60201
0.24%1329
0.45%