ee/app/models/ee/epic.rb
# We support internal references (&epic_id) and cross-references (group.full_path&epic_id)
#
# Escaped versions with `&amp;` will be extracted too
#
# The parent of epic is group instead of project and therefore we have to define new patterns
We support internal references (&epic_id) and cross-references (group.full_path&epic_id)
Escaped versions with `&` will be extracted too

The parent of epic is group instead of project and therefore we have to define new patterns
We support internal references ( &epic_id ) and cross - references ( group . full_path&epic_id ) Escaped versions with ` & ` will be extracted too The parent of epic is group instead of project and therefore we have to define new patterns
def reference_pattern
        @reference_pattern ||= begin
          combined_prefix = Regexp.union(Regexp.escape(reference_prefix), Regexp.escape(reference_prefix_escaped))
          group_regexp = %r{
            (?<!\w)
            (?<group>#{::Gitlab::PathRegex::FULL_NAMESPACE_FORMAT_REGEX})
          }x
          %r{
            (#{group_regexp})?
            (?:#{combined_prefix})(?<epic>\d+)
          }x
        end
      end
def reference_pattern @reference_pattern ||= begin combined_prefix = Regexp . union ( Regexp . escape ( reference_prefix ) , Regexp . escape ( reference_prefix_escaped ) ) group_regexp = %r{ 
            (?<! \w )
            (?<group> #{ :: Gitlab :: PathRegex :: FULL_NAMESPACE_FORMAT_REGEX } )
           }x %r{ 
            ( #{ group_regexp } )?
            (?: #{ combined_prefix } )(?<epic> \d +)
           }x end end
We support internal references (&epic_id) and cross-references (group.full_path&epic_id)
Escaped versions with `&amp;` will be extracted too
We support internal references ( &epic_id ) and cross - references ( group . full_path&epic_id ) Escaped versions with ` &amp ; ` will be extracted too