Commit 7eacc089 authored by Dídac Rodríguez Arbonès's avatar Dídac Rodríguez Arbonès
Browse files

Allow single letter external issue IDs

parent 567352c4ec29
...@@ -12,5 +12,5 @@ ...@@ -12,5 +12,5 @@
# overriden patterns. See ReferenceRegexes::EXTERNAL_PATTERN # overriden patterns. See ReferenceRegexes::EXTERNAL_PATTERN
def self.reference_pattern(only_long: false) def self.reference_pattern(only_long: false)
if only_long if only_long
/(\b[A-Z][A-Z0-9_]+-)(?<issue>\d+)/ /(\b[A-Z][A-Z0-9_]*-)(?<issue>\d+)/
else else
...@@ -16,5 +16,5 @@ ...@@ -16,5 +16,5 @@
else else
/(\b[A-Z][A-Z0-9_]+-|#{Issue.reference_prefix})(?<issue>\d+)/ /(\b[A-Z][A-Z0-9_]*-|#{Issue.reference_prefix})(?<issue>\d+)/
end end
end end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment