Commit 42b51681 authored by Daniel Gerhardt's avatar Daniel Gerhardt

Restore Ruby 2.3 compatibility

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