Any filename that contains `dockerfile` will syntax highlight as "docker" language
Summary
Our syntax highlighter heuristic is failing with filenames that contains dockerfile
, like in: https://gitlab.com/gitlab-org/gitlab/-/blob/3659ab79b440dd0add3801a8862b6238b563807f/spec/features/projects/files/dockerfile_dropdown_spec.rb
Steps to reproduce
Create a file using any extension but name it dockerfile_something.extension
What is the current bug behavior?
It looks like our heuristic is using any file that contains dockerfile
before checking for any valid extension.
What is the expected correct behavior?
if there is a valid extension we should use that instead
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)