Commit 5166584127078cfd0d1f1b37acff5e540c24ddce
Ignore trailing dot in publish
cel committed on 11/26/2016, 11:04:10 PMParent: 74b692dae8fe724adf9d23eae0dbca6fdccc989e
Files changed
lib/publish.js | changed |
lib/publish.js | ||
---|---|---|
@@ -34,8 +34,11 @@ | ||
34 | 34 … | if (!branches.every(SsbRef.isMsgId)) { |
35 | 35 … | return void cb(new Error("invalid branches")); |
36 | 36 … | } |
37 | 37 … | |
38 … | + // our schema does not use the trailing dot in record names | |
39 … | + record.name = record.name.replace(/\.$/, '') | |
40 … | + | |
38 | 41 … | require("ssb-client")(function (err, sbot) { |
39 | 42 … | if (err) { return void cb(err); } |
40 | 43 … | |
41 | 44 … | var val = { |
Built with git-ssb-web