Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1595 from edsu/master
Browse files Browse the repository at this point in the history
maybe the basecamp project urls used to have a trailing slash? fixes #15...
  • Loading branch information
technicalpickles committed Jun 5, 2015
2 parents 130315d + ffe0b13 commit d63a814
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/walkie.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ module.exports = (robot) ->
url = msg.match[1]
if /http(s)?\:\/\//.test(url)
accountID = parseInt url.match(/\.com\/([0-9]*)\//)[1]
projectID = parseInt url.match(/projects\/([0-9]*)-/)[1]
projectID = parseInt url.match(/projects\/([0-9]*)/)[1]
msg.http("https://basecamp.com/#{accountID}/api/v1/projects.json")
.headers(Authorization: auth, Accept: 'application/json', 'User-Agent': 'Walkie (http://walkie.tybenz.com)')
.get() (err, res, body) ->
Expand Down

0 comments on commit d63a814

Please sign in to comment.