apparently newlines don't work with ruby 1.8
This commit is contained in:
parent
3978ada519
commit
033e906a32
1 changed files with 1 additions and 2 deletions
|
@ -17,8 +17,7 @@ module Middleman
|
|||
end
|
||||
|
||||
if (args[0] === args[1])
|
||||
args[1] = args[0].gsub("#{File.basename(Middleman::Base.views)}/", "")
|
||||
.gsub("#{File.basename(Middleman::Base.public)}/", "")
|
||||
args[1] = args[0].gsub("#{File.basename(Middleman::Base.views)}/", "").gsub("#{File.basename(Middleman::Base.public)}/", "")
|
||||
if File.extname(args[1]) != ".js"
|
||||
args[1] = args[1].gsub!(File.extname(args[1]), "") if File.basename(args[1]).split('.').length > 2
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue