Skip to content
Snippets Groups Projects
Commit cee6fbea authored by Mahdi Yari's avatar Mahdi Yari
Browse files

Merge branch 'fix-formatter.commentPermlink' into 'master'

remove . from premlink

Closes #26

See merge request !33
parents 8bab35e4 c4aa5544
No related branches found
No related tags found
No related merge requests found
{ {
"name": "@hiveio/hive-js", "name": "@hiveio/hive-js",
"version": "0.8.14", "version": "0.8.15",
"description": "Hive.js the JavaScript API for Hive blockchain", "description": "Hive.js the JavaScript API for Hive blockchain",
"main": "lib/index.js", "main": "lib/index.js",
"scripts": { "scripts": {
......
...@@ -207,7 +207,7 @@ module.exports = hiveAPI => { ...@@ -207,7 +207,7 @@ module.exports = hiveAPI => {
.replace(/[^a-zA-Z0-9]+/g, "") .replace(/[^a-zA-Z0-9]+/g, "")
.toLowerCase(); .toLowerCase();
parentPermlink = parentPermlink.replace(/(-\d{8}t\d{9}z)/g, ""); parentPermlink = parentPermlink.replace(/(-\d{8}t\d{9}z)/g, "");
return "re-" + parentAuthor + "-" + parentPermlink + "-" + timeStr; return ("re-" + parentAuthor + "-" + parentPermlink + "-" + timeStr).replace(".", "");
}, },
amount: function(amount, asset) { amount: function(amount, asset) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment