Skip to content
Browse files

fixes #8: bad regex was only taking in 2 digits, not it takes in 3

  • Loading branch information...
1 parent 084d9d2 commit 81004fd364f4be720f3a906caa545d835d912e0c rob hurring committed Apr 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/scripts/redmine.coffee
View
2 src/scripts/redmine.coffee
@@ -45,7 +45,7 @@ module.exports = (robot) ->
msg.reply "#{redmine.url}/issues/#{id}"
# Robot set <issue> to <percent>% ["comments"]
- robot.respond /set (?:issue )?(?:#)?(\d+) to (\d{1,2})%?(?: "?([^"]+)"?)?/i, (msg) ->
+ robot.respond /set (?:issue )?(?:#)?(\d+) to (\d{1,3})%?(?: "?([^"]+)"?)?/i, (msg) ->
[id, percent, notes] = msg.match[1..3]
percent = parseInt percent

0 comments on commit 81004fd

Please sign in to comment.
Something went wrong with that request. Please try again.