Merge pull request #6534 from dlorch/master

JIRA project identifiers may also contain dashes '-'
This commit is contained in:
Dmitriy Zaporozhets 2014-03-17 13:28:39 +02:00
commit a7ac57a1a3
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ module Gitlab
(?<prefix>\W)? # Prefix
( # Reference
@(?<user>[a-zA-Z][a-zA-Z0-9_\-\.]*) # User name
|\#(?<issue>([a-zA-Z]+-)?\d+) # Issue ID
|\#(?<issue>([a-zA-Z\-]+-)?\d+) # Issue ID
|!(?<merge_request>\d+) # MR ID
|\$(?<snippet>\d+) # Snippet ID
|(?<commit>[\h]{6,40}) # Commit ID