Skip to content

Commit

Permalink
🎍🐝 Updated with Glitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Glitch (dat-shopping-list-dev) committed May 14, 2018
1 parent c17ea42 commit 6f815ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dat-shopping-list",
"version": "0.0.5",
"version": "0.0.6",
"description": "A demo of Dat multiwriter support (hyperdrive+hyperdb) in a PWA",
"author": "Jim Pick (@jimpick)",
"main": "server/index.js",
Expand Down
2 changes: 1 addition & 1 deletion stores/shoppingList.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function store (state, emitter) {
emitter.on('navigate', updateDoc)

emitter.on('addLink', link => {
const match = link.match(/([0-9a-fA-F]{64})$/)
const match = link.match(/([0-9a-fA-F]{64})\/?$/)
if (match) {
const key = match[1]
emitter.emit('pushState', `/doc/${key}`)
Expand Down

0 comments on commit 6f815ab

Please sign in to comment.