Skip to content

Commit

Permalink
fix ipfs regex. cc @jbenet
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Apr 13, 2015
1 parent 2596a6b commit 73ce176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ module.exports = function () {
if (/magnet:/.test(link)) return onmagnet(link, cb)
if (/\.torrent$/i.test(link)) return ontorrent(link, cb)
if (/youtube\.com\/watch/i.test(link)) return onyoutube(link, cb)
if (/^\/(ipfs|ipns)\//i.test(link)) return onipfslink(link, cb)
if (/^\/*(ipfs|ipns)\//i.test(link)) return onipfslink(link, cb)
if (/^\/https?:\/\//i.test(link)) return onhttplink(link, cb)
onfile(link, cb)
}
Expand Down

0 comments on commit 73ce176

Please sign in to comment.