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 link_reference_pattern
        %r{
          (?<url>
            #{Regexp.escape(::Gitlab.config.gitlab.url)}
            \/groups\/(?<group>#{::Gitlab::PathRegex::FULL_NAMESPACE_FORMAT_REGEX})
            \/-\/epics
            \/(?<epic>\d+)
            (?<path>
              (\/[a-z0-9_=-]+)*
            )?
            (?<query>
              \?[a-z0-9_=-]+
              (&[a-z0-9_=-]+)*
            )?
            (?<anchor>\#[a-z0-9_-]+)?
          )
        }x
      end
def link_reference_pattern %r{ 
          (?<url>
             #{ Regexp . escape ( :: Gitlab . config . gitlab . url ) } \/ groups \/ (?<group> #{ :: Gitlab :: PathRegex :: FULL_NAMESPACE_FORMAT_REGEX } )
             \/ - \/ epics
             \/ (?<epic> \d +)
            (?<path>
              ( \/ [a-z0-9_=-]+)*
            )?
            (?<query>
               \? [a-z0-9_=-]+
              (&[a-z0-9_=-]+)*
            )?
            (?<anchor> \# [a-z0-9_-]+)?
          )
         }x 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