lib/url_regexp/scheme.rb in url_regexp-0.1.1 vs lib/url_regexp/scheme.rb in url_regexp-0.1.2

- old
+ new

@@ -10,18 +10,17 @@ @schemes << scheme end def to_regexp_s schemes = @schemes.map { |s| Regexp.quote(s) } - s = if schemes == %w(http https) - "https?://" + if schemes == %w(http https) + 'https?://' elsif 1 < @schemes.size "(#{schemes.join('|')})://" elsif 1 == @schemes.size - "#{schemes.to_a.first.to_s}://" + "#{schemes.to_a.first}://" else - "" + '' end - s end end end