Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 81004fd364f4be720f3a906caa545d835d912e0c 1 parent 084d9d2
rob hurring authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.