Skip to content

Commit

Permalink
Merge pull request #13 from parkr/patch-1
Browse files Browse the repository at this point in the history
Expand regexp to allow up to 12 chars and 10 nums
  • Loading branch information
mattfinlayson committed Aug 5, 2015
2 parents 2f013cf + 9d9fc28 commit ea49851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/jira-lookup.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = (robot) ->
if ignored_users == undefined
ignored_users = "jira|github"

robot.hear /\b[a-zA-Z]{2,5}-[0-9]{1,5}\b/, (msg) ->
robot.hear /\b[a-zA-Z]{2,12}-[0-9]{1,10}\b/, (msg) ->

return if msg.message.user.name.match(new RegExp(ignored_users, "gi"))

Expand Down

0 comments on commit ea49851

Please sign in to comment.