Permalink
Browse files

Merge pull request #280 from Chevex/patch-1

Expanded Fogbugz hook regular expression
  • Loading branch information...
2 parents d13a80c + 410f51c commit e24f5df3e2b9e09a7c888671476542721e74de56 @technoweenie technoweenie committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 services/fog_bugz.rb
View
@@ -22,7 +22,7 @@ def receive_push
bug_list = []
message.split("\n").each do |line|
# match variants of bugids or cases
- if (line =~ /\s*(?:Bug[zs]*\s*IDs*\s*|Case[s]*)[#:; ]+((\d+[ ,:;#]*)+)/i)
+ if (line =~ /\s*(?:Bug[zs]*\s*(IDs*)?\s*|Case[s]*|Ticket[s]*)[#:; ]+((\d+[ ,:;#]*)+)/i)
bug_list << $1.to_i
end
end

0 comments on commit e24f5df

Please sign in to comment.