Attempt to help #1563

This commit is contained in:
Thomas Reynolds 2015-07-15 14:08:51 -07:00
parent a855b634e6
commit 55f909d9cf

View file

@ -91,7 +91,7 @@ class Middleman::Extensions::AssetHash < ::Middleman::Extension
dirpath = Pathname.new(File.dirname(path))
# TODO: This regex will change some paths in plan HTML (not in a tag) - is that OK?
body.gsub(/([=\'\"\(,]\s*)([^\s\'\"\)]+(#{@exts_regex_text}))/) do |match|
body.gsub(/([=\'\"\(,]\s*)([^\s\'\"\)]{1,255}#{@exts_regex_text})/) do |match|
opening_character = $1
asset_path = $2