Commit 387b4410 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'tc-fix-snippets-notes-spec' into 'master'

Fix spec/features/snippets/notes_on_personal_snippets_spec.rb

Closes #31993

See merge request !11199
parents eb61b3b3 69b10e16
......@@ -92,7 +92,7 @@ module Mentionable
# Uses regex to quickly determine if mentionables might be referenced
# Allows heavy processing to be skipped
def matches_cross_reference_regex?
reference_pattern = if project.default_issues_tracker?
reference_pattern = if !project || project.default_issues_tracker?
ReferenceRegexes::DEFAULT_PATTERN
else
ReferenceRegexes::EXTERNAL_PATTERN
......
Markdown is supported
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