Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
blog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SRCT
blog
Commits
13214233
Commit
13214233
authored
Feb 24, 2014
by
Brandon Mathis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed accidental call to expand_url
parent
028769b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
plugins/octopress_filters.rb
plugins/octopress_filters.rb
+1
-1
No files found.
plugins/octopress_filters.rb
View file @
13214233
...
@@ -79,7 +79,7 @@ module OctopressLiquidFilters
...
@@ -79,7 +79,7 @@ module OctopressLiquidFilters
def
expand_urls
(
input
,
url
=
''
)
def
expand_urls
(
input
,
url
=
''
)
url
||=
'/'
url
||=
'/'
input
.
gsub
/(\s+(href|src)\s*=\s*["|']{1})(\/[^\/\"'>]*)(["|']{1})/
do
input
.
gsub
/(\s+(href|src)\s*=\s*["|']{1})(\/[^\/\"'>]*)(["|']{1})/
do
$1
+
expand_url
(
$3
,
url
)
+
$4
$1
+
$3
+
$4
end
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment