Skip to content

Commit de9ca2f

Browse files
committed
correct matching for regex
1 parent 1d01ce2 commit de9ca2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/ipfs.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ module.exports = (robot) ->
329329

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

0 commit comments

Comments
 (0)