gitlab-org--gitlab-foss/lib/gitlab/regex.rb

20 lines
239 B
Ruby
Raw Normal View History

2012-11-27 22:14:05 -05:00
module Gitlab
module Regex
extend self
def username_regex
default_regex
end
def path_regex
default_regex
end
protected
def default_regex
/\A[a-zA-Z][a-zA-Z0-9_\-\.]*\z/
end
end
end