Skip to content

Commit

Permalink
Use sub in favor of gsub
Browse files Browse the repository at this point in the history
  • Loading branch information
fphilipe committed Feb 28, 2012
1 parent 25e8751 commit 6d9e405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/premailer-rails3/css_helper.rb
Expand Up @@ -23,7 +23,7 @@ def load_css_at_path(path)
# Remove everything after ? including ?
path = path[0..(path.index('?') - 1)] if path.include? '?'
# Remove the host
path = path.gsub(/^https?\:\/\/[^\/]*/, '') if path.index('http') == 0
path = path.sub(/^https?\:\/\/[^\/]*/, '') if path.index('http') == 0
end

# Don't cache in development.
Expand Down

0 comments on commit 6d9e405

Please sign in to comment.