Skip to content

Commit

Permalink
correct matching for regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jbenet committed Jun 26, 2018
1 parent 1d01ce2 commit de9ca2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ipfs.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ module.exports = (robot) ->

# ipfs pin
robot.respond /(ipfs pin add -r|pin) (\S+)/i, (res) ->
path = cleanPath(res.match[1])
path = cleanPath(res.match[2])
# todo: some path validation
testApi res, ->
res.send "pinning #{prettyPath path} (warning: experimental)"
Expand Down

0 comments on commit de9ca2f

Please sign in to comment.