@hestia-earth/utils 0.12.6 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/string.js +2 -0
  2. package/package.json +1 -1
package/dist/string.js CHANGED
@@ -32,6 +32,8 @@ var toDashCase = function (value) {
32
32
  ? value
33
33
  // handle dates followed by capital letter
34
34
  .replace(/([\d]{4})([A-Z]{1})/g, function (g) { return g.substring(0, 4) + "-" + g[4].toLowerCase(); })
35
+ // handle words followed by dates
36
+ .replace(/([A-Za-z]{1})([\d]{4})/g, '$1-$2')
35
37
  // handle molecules
36
38
  .replace(/([\d]{1}[A-Z]{1}?)([A-Z]{1})/g, function (_g) {
37
39
  var args = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/utils",
3
- "version": "0.12.6",
3
+ "version": "0.13.0",
4
4
  "description": "Hestia Utils library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",