resolves #1656 don't mangle URL inside tag

This commit is contained in:
Dan Allen 2015-10-26 00:58:34 -06:00
parent 30e37293b3
commit c48c81cbba
3 changed files with 5 additions and 1 deletions

View file

@ -328,7 +328,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