Commit 35b3392e authored by Matija Čupić's avatar Matija Čupić

Allow any character in tag / branch ref regex

parent 38348aa1
......@@ -54,11 +54,11 @@ module Gitlab
end
def tag_ref?(ref)
ref =~ /#{TAG_REF_PREFIX}\w+/
ref =~ /#{TAG_REF_PREFIX}.+/
end
def branch_ref?(ref)
ref =~ /#{BRANCH_REF_PREFIX}\w+/
ref =~ /#{BRANCH_REF_PREFIX}.+/
end
def blank_ref?(ref)
......
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