Commit d12bc3bf authored by Matija Čupić's avatar Matija Čupić

Search for tag / branch ref from beginning

parent e0b5306c
...@@ -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}.+/ ref =~ /^#{TAG_REF_PREFIX}.+/
end end
def branch_ref?(ref) def branch_ref?(ref)
ref =~ /#{BRANCH_REF_PREFIX}.+/ 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