This commit is contained in:
Thomas Reynolds 2014-11-19 09:04:56 -08:00
commit d8e8b06cb6
28 changed files with 334 additions and 121 deletions

View file

@ -317,7 +317,7 @@ module Middleman
Contract String, String, ArrayOf[String], Proc => String
def rewrite_paths(body, _path, exts, &_block)
body.dup.gsub(/([=\'\"\(]\s*)([^\s\'\"\)]+(#{Regexp.union(exts)}))/) do |match|
body.dup.gsub(/([=\'\"\(,]\s*)([^\s\'\"\)]+(#{Regexp.union(exts)}))/) do |match|
opening_character = $1
asset_path = $2