git ssb

0+

clemo / ssb-ipfs-share



forked from arj / dat-share

Commit ee570c41c6e2c24f4c77c9f3c9f14811bfb29f5f

Workaround bug in uri.js around links in markdown

Anders Rune Jensen committed on 10/9/2017, 6:33:11 PM
Parent: 6fa3c4f057cc48da8700d4578a74c074f7f92e1b

Files changed

lib.jschanged
package.jsonchanged
lib.jsView
@@ -11,8 +11,14 @@
1111 logs.forEach(msg => {
1212 uri.withinString(msg.value.content.text, (datLink) => {
1313 if (!datLink.startsWith("dat://")) return
1414
15+ // issue #360 in uri.js
16+ var bracket = datLink.indexOf("]")
17+
18+ if (bracket != -1)
19+ datLink = datLink.substring(0, bracket)
20+
1521 if (!useTemp)
1622 console.log("Saving to:", shareFolder + "/" + datLink.substring(6))
1723
1824 Dat(shareFolder + "/" + datLink.substring(6), {
package.jsonView
@@ -1,7 +1,7 @@
11 {
22 "name": "ssb-dat-autoshare",
3- "version": "0.0.3",
3+ "version": "0.0.4",
44 "description": "A cli for auto sharing dat links scuttlebot feeds",
55 "main": "export-data.js",
66 "scripts": {
77 "test": "echo \"Error: no test specified\" && exit 1"

Built with git-ssb-web