lib/roadie/inliner.rb
# Regexp matching all the url() declarations in CSS
#
# It matches without any quotes and with both single and double quotes
# inside the parenthesis. There's much room for improvement, of course.
Regexp matching all the url() declarations in CSS
It matches without any quotes and with both single and double quotes
inside the parenthesis. There's much room for improvement, of course.
Regexp matching all the url () declarations in CSS It matches without any quotes and with both single and double quotes inside the parenthesis . There ' s much room for improvement of course .
def ensure_absolute_url(url, base_path = nil)
        base, uri = absolute_url_base(base_path), URI.parse(url)
        if uri.relative? and base
          base.merge(uri).to_s
        else
          uri.to_s
        end
      rescue URI::InvalidURIError
        return url
      end
def ensure_absolute_url ( url , base_path = nil ) base , uri = absolute_url_base ( base_path ) , URI . parse ( url ) if uri . relative? and base base . merge ( uri ) . to_s else uri . to_s end rescue URI :: InvalidURIError return url end
Regexp matching all the url() declarations in CSS
It matches without any quotes and with both single and double quotes
inside the parenthesis.
Regexp matching all the url () declarations in CSS It matches without any quotes and with both single and double quotes inside the parenthesis .
url
<not_specific>
base_path
<not_specific>