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