From 0ead88e6c2f26441e200a1a1132fb1a90225b854 Mon Sep 17 00:00:00 2001
From: Brandon Mathis <brandon@imathis.com>
Date: Mon, 24 Feb 2014 20:52:26 -0600
Subject: Fixed the expand_url filter. Finally.

Thanks @larryprice
---
 plugins/octopress_filters.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'plugins')

diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb
index 40d6a975..a2ed71f8 100644
--- a/plugins/octopress_filters.rb
+++ b/plugins/octopress_filters.rb
@@ -78,8 +78,8 @@ module OctopressLiquidFilters
   # Replaces relative urls with full urls
   def expand_urls(input, url='')
     url ||= '/'
-    input.gsub /(\s+(href|src)\s*=\s*["|']{1})(\/[^\/\"'>]*)(["|']{1})/ do
-      $1 + $3 + $4
+    input.gsub /(\s+(href|src)\s*=\s*["|']{1})(\/[^\/>]{1}[^\"'>]*)/ do
+      $1+url+$3
     end
   end
 
-- 
cgit v1.2.1