Added poster="" to list of things expand urls should work on. #1707

This commit is contained in:
Brandon Mathis 2015-01-11 15:15:53 -06:00
parent 1708b99a06
commit 3a2a5d9bf9

View File

@ -85,7 +85,7 @@ module OctopressLiquidFilters
# Replaces relative urls with full urls # Replaces relative urls with full urls
def expand_urls(input, url='') def expand_urls(input, url='')
url ||= '/' url ||= '/'
input.gsub /(\s+(href|src)\s*=\s*["|']{1})(\/[^\/>]{1}[^\"'>]*)/ do input.gsub /(\s+(href|src|poster)\s*=\s*["|']{1})(\/[^\/>]{1}[^\"'>]*)/ do
$1+url+$3 $1+url+$3
end end
end end