Remove extra space

This commit is contained in:
Douwe Maan 2017-05-24 16:56:16 -05:00
parent 43b1750892
commit c27877cab5
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ module Gitlab
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
Regexp.new(regex.source.gsub(/\(\?#.+?\)/, '').gsub(/\s*/, ''), regex.options ^ Regexp::EXTENDED).freeze
end
end
end