git ssb

7+

dinoworm 🐛 / patchcore



Commit 2231341bc0bba5fa0121c041ed4184a9d81992d7

change router.sync.normalise normalisation of /:page style links

mix irving committed on 8/31/2017, 2:23:43 AM
Parent: eaa0057dcd22e8c2aa9e8478313043e59e443ff3

Files changed

router/sync/normalise.jschanged
router/sync/normalise.jsView
@@ -11,9 +11,9 @@
1111 if (isBlob(location)) return { blob: location }
1212 if (isChannel(location)) return { channel: location }
1313 if (isFeed(location)) return { feed: location }
1414 if (isMsg(location)) return { key: location }
15- if (isPage(location)) return { page: location }
15 + if (isPage(location)) return { page: location.substring(1) }
1616 }
1717
1818 function isChannel (str) {
1919 return typeof str === 'string' && str[0] === '#' && str.length > 1

Built with git-ssb-web