Skip to content
Snippets Groups Projects
Commit 0ef796d6 authored by Kamil Trzcińśki's avatar Kamil Trzcińśki
Browse files

Fix regexp

parent 48daab5f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -379,7 +379,7 @@ class Repository
cache.fetch(:issue_template) do
[nil, '.gitlab', '.github'].each do |path|
tree(:head, path).blobs.find do |file|
file.name =~ /\Aissue_template(?\.txt)(?\.md)\z/i
file.name =~ /\Aissue_template(\.txt|\.md)?\z/i
end
end
end
Loading
Loading
@@ -389,7 +389,7 @@ class Repository
cache.fetch(:merge_request_template) do
[nil, '.gitlab', '.github'].each do |path|
tree(:head, path).blobs.find do |file|
file.name =~ /\Amerge_request_template(?\.txt)(?\.md)\z/i
file.name =~ /\Amerge_request_template(\.txt|\.md)?\z/i
end
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment