octopress-filters 1.2.3 → 1.2.4
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 +2 -5
- 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: b2357cb37590cb64fbeaaecd05376b426165491d
|
4
|
+
data.tar.gz: 7c1ae0b31902592000b63670e4e6d1bac628e391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bf6d18153c2c0033253f8615065cf292cdc463efcae779a3a32c9f87570d3cdef703996b59bb77a9d46c0eacb6aaf7e4680b305ae9331b631c7eed89db3b8f1
|
7
|
+
data.tar.gz: f7c237f990bb7c18c6e33443d5c848c2c97aed282476cfbb874864cfeb293cb71d8a9b869c182f0600751c9c1a9b317149f466b020cc9df30d71320199dc557e
|
data/CHANGELOG.md
CHANGED
data/lib/octopress-filters.rb
CHANGED
@@ -105,11 +105,8 @@ module Octopress
|
|
105
105
|
File.join(url, input)
|
106
106
|
end
|
107
107
|
|
108
|
-
# Ensure a trailing slash if a url
|
109
|
-
|
110
|
-
# - or ends with a directory
|
111
|
-
if !(url =~ /\.\w+$/) || url =~ /:\/\/[^\/]+$/
|
112
|
-
# Add trailing slash if necessary
|
108
|
+
# Ensure a trailing slash if a url ends with a directory
|
109
|
+
if !(url =~ /\.\w+$/)
|
113
110
|
url = File.join(url, '/')
|
114
111
|
end
|
115
112
|
|