@hestia-earth/utils 0.14.6 → 0.14.7

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 +8 -3
  2. package/package.json +1 -1
package/dist/string.js CHANGED
@@ -93,9 +93,14 @@ exports.parseMarkdownLink = parseMarkdownLink;
93
93
  * @returns
94
94
  */
95
95
  var parseCitation = function (value) {
96
- var _a;
96
+ var _a, _b;
97
97
  var parsed = exports.parseMarkdownLink(value);
98
- var _b = __read(parsed.title.match(/(.*[(]\d+[)][\.|\s])?(.*)/), 3), original = _b[0], name = _b[1], title = _b[2];
99
- return { original: original, name: (_a = name === null || name === void 0 ? void 0 : name.trim()) === null || _a === void 0 ? void 0 : _a.replace(/\.$/, ''), title: title === null || title === void 0 ? void 0 : title.trim(), link: parsed.link };
98
+ var _c = __read(parsed.title.match(/(.*[(]\d+[)][\.|\s])?(.*)/), 3), original = _c[0], name = _c[1], title = _c[2];
99
+ return {
100
+ original: original,
101
+ name: (_a = name === null || name === void 0 ? void 0 : name.trim()) === null || _a === void 0 ? void 0 : _a.replace(/\.$/, ''),
102
+ title: (_b = title === null || title === void 0 ? void 0 : title.trim()) === null || _b === void 0 ? void 0 : _b.replace(/\.$/, ''),
103
+ link: parsed.link
104
+ };
100
105
  };
101
106
  exports.parseCitation = parseCitation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/utils",
3
- "version": "0.14.6",
3
+ "version": "0.14.7",
4
4
  "description": "HESTIA Utils library",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",