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

main
Brandon Mathis 10 years ago
parent 1708b99a06
commit 3a2a5d9bf9

@ -85,7 +85,7 @@ module OctopressLiquidFilters
# Replaces relative urls with full urls
def expand_urls(input, 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
end
end

Loading…
Cancel
Save