JIRA project identifiers may also contain dashes '-'

This commit is contained in:
Daniel Lorch
2014-03-14 18:08:05 +01:00
parent 17a9ecf8cf
commit 686128cd68
+1 -1
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