diff options
author | Yauhen Kotau <yauhen.kotau@psa-software.com> | 2019-02-20 19:00:55 +0300 |
---|---|---|
committer | Yauhen Kotau <yauhen.kotau@psa-software.com> | 2019-02-20 19:00:55 +0300 |
commit | 5011d83cb14b5ffae0060b3e7309a24eca80a1b2 (patch) | |
tree | 24605d31cb6cf087773a1165b6b7bd7316f96f17 /app/models/project_services | |
parent | fdfa6f1e4d03c295111a3ca95b05b0b189af20c3 (diff) |
Lowercase letters support and additional tests for YouTrack integration service
Diffstat (limited to 'app/models/project_services')
-rw-r--r-- | app/models/project_services/youtrack_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_services/youtrack_service.rb b/app/models/project_services/youtrack_service.rb index ed8c0635124..ad9d26f3950 100644 --- a/app/models/project_services/youtrack_service.rb +++ b/app/models/project_services/youtrack_service.rb @@ -8,9 +8,9 @@ class YoutrackService < IssueTrackerService # {PROJECT-KEY}-{NUMBER} Examples: YT-1, PRJ-1 def self.reference_pattern(only_long: false) if only_long - /(?<issue>\b[A-Z][A-Z0-9_]*-\d+)/ + /(?<issue>\b[A-Z][A-Za-z0-9_]*-\d+)/ else - /(?<issue>\b[A-Z][A-Z0-9_]*-\d+)|(#{Issue.reference_prefix}(?<issue>\d+))/ + /(?<issue>\b[A-Z][A-Za-z0-9_]*-\d+)|(#{Issue.reference_prefix}(?<issue>\d+))/ end end |