diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2017-06-10 00:13:41 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2017-06-10 00:13:41 +0300 |
commit | 342e23115523210b60b9f557f1cfbcfdc3361af0 (patch) | |
tree | f78df9d79f4b05f1ecbdedf19a9e96678d5d2fc7 /lib | |
parent | fd760b78bc0ef7a75be9193fb66a8b37a6a9b857 (diff) |
Resolve inconsistencies
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/regex.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index 009ecc9b263..e4d2a992470 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -62,13 +62,5 @@ module Gitlab "can contain only lowercase letters, digits, and '-'. " \ "Must start with a letter, and cannot end with '-'" end - - private - - def single_line_regexp(regex) - # Turns a multiline extended regexp into a single line one, - # beacuse `rake routes` breaks on multiline regexes. - Regexp.new(regex.source.gsub(/\(\?#.+?\)/, '').gsub(/\s*/, ''), regex.options ^ Regexp::EXTENDED).freeze - end end end |