lib/amp/support/support.rb
##
# removes the password from a url. else, just returns self
# @return [String] the URL with passwords censored.
removes the password from a url. else, just returns self
removes the password from a url . else just returns self
def hide_password
    if s = self.match(/^http(?:s)?:\/\/[^:]+(?::([^:]+))?(@)/)
      string = self[0..s.begin(1)-1]           
      string << '***'
      string << self[s.begin(2)..-1]
      string
    else
      self
    end
  end
def hide_password if s = self . match ( / ^http(?:s)?: \/ \/ [^:]+(?::([^:]+))?(@) / ) string = self [ 0 .. s . begin ( 1 ) - 1 ] string << '***' string << self [ s . begin ( 2 ) .. - 1 ] string else self end end
removes the password from a url.
removes the password from a url .
# get from beginning to the pass
the URL with passwords censored.
the URL with passwords censored .
String