@fishawack/lab-d3
Advanced tools
Comparing version 2.6.2 to 2.6.3
{ | ||
"name": "@fishawack/lab-d3", | ||
"version": "2.6.2", | ||
"version": "2.6.3", | ||
"description": "Abstract layer built on top of d3", | ||
@@ -5,0 +5,0 @@ "vars": { |
@@ -233,2 +233,5 @@ ## Background | ||
### 2.6.3 | ||
* format and formatKeys no longer inserts the missing matched property into the strings if they aren't found | ||
### 2.6.2 | ||
@@ -235,0 +238,0 @@ * Added new label property in so you can adjust the format/structure of labels themselves |
@@ -98,3 +98,3 @@ "use strict"; | ||
return String(format.replace(/{(\w+)}/g, function (match, key) { | ||
return typeof args[key] !== 'undefined' ? args[key] : match; | ||
return typeof args[key] !== 'undefined' ? args[key] : ''; | ||
})); | ||
@@ -105,3 +105,3 @@ }, | ||
return String(_format.replace(/{(\d+)}/g, function (match, number) { | ||
return typeof args[number] !== 'undefined' ? args[number] : match; | ||
return typeof args[number] !== 'undefined' ? args[number] : ''; | ||
})); | ||
@@ -108,0 +108,0 @@ }, |
563821
565