Commit 51885661 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Restore Ruby 2.3 compatibility

* Use match instead match?
parent 8da43c2d
......@@ -27,7 +27,7 @@ module Gitlab
end
def invalid_extension?
location.nil? || !::File.basename(location).match?(YAML_WHITELIST_EXTENSION)
location.nil? || !::File.basename(location).match(YAML_WHITELIST_EXTENSION)
end
def valid?
......
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