octopress-filters 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/octopress-filters.rb +1 -1
- data/lib/octopress-filters/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 275742bcf0c2c8509d00c77967e676656d414359
|
4
|
+
data.tar.gz: 55acae0b91e3ff40333ebb176a92eb7fa22fefa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 459fcd158dd11dd276c5b1ef871f2dc02ccfa638b112d28e8ad15df1a489c9f27b931d230607af9166ef234bb349462d1b84588fe69d459d295126f505e60273
|
7
|
+
data.tar.gz: 60d86ad2b640030e3ee0483054f4e7fa03d799cff19742895c8f9cad8203e7da9778a47356737cd7917468e47cb1900f1d86e0f7cc9eff7ab228fb61a5f62990
|
data/CHANGELOG.md
CHANGED
data/lib/octopress-filters.rb
CHANGED
@@ -90,7 +90,7 @@ module Octopress
|
|
90
90
|
# If a baseurl has been manually added to a url,
|
91
91
|
# this ensures it isn't added twice
|
92
92
|
def strip_baseurls(input)
|
93
|
-
if baseurl
|
93
|
+
if !baseurl.empty?
|
94
94
|
input.gsub /(\s+(href|src|poster)\s*=\s*["|'])(\/#{baseurl})/, '\1'
|
95
95
|
else
|
96
96
|
input
|