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 all_link_elements_to_be_inlined_with_url
        all_link_elements_with_url.reject do |link, url|
          absolute_path_url = (url.host or url.path.nil?)
          blacklisted_element = (link['media'] == 'print' or link['data-immutable'])
          absolute_path_url or blacklisted_element
        end
      end
def all_link_elements_to_be_inlined_with_url all_link_elements_with_url . reject do | link , url | absolute_path_url = ( url . host or url . path . nil? ) blacklisted_element = ( link [ 'media' ] == 'print' or link [ 'data-immutable' ] ) absolute_path_url or blacklisted_element end 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 .