lib/pimpmychangelog/pimper.rb in pimpmychangelog-0.1.0 vs lib/pimpmychangelog/pimper.rb in pimpmychangelog-0.1.1
- old
+ new
@@ -36,10 +36,10 @@
end
# The following regexp ensure that the issue or contributor is
# not wrapped between brackets (aka: is a link)
ISSUE_NUMBER_REGEXP = /(^|[^\[])#(\d+)($|[^\]])/
- CONTRIBUTOR_REGEXP = /(^|[^\[])@(\w+)($|[^\]])/
+ CONTRIBUTOR_REGEXP = /(^|[^\[])@([\w-]+)($|[^\]])/
# @param [Array] issues An array of issue numbers
# @param [Array] contributors An array of contributors github ids
#
# @return [String] A list of link definitions