Added poster="" to list of things expand urls should work on. #1707
authorBrandon Mathis <brandon@imathis.com>
Sun, 11 Jan 2015 21:15:53 +0000 (15:15 -0600)
committerBrandon Mathis <brandon@imathis.com>
Sun, 11 Jan 2015 21:15:53 +0000 (15:15 -0600)
plugins/octopress_filters.rb

index 9c7fa6c..48413a8 100644 (file)
@@ -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