server_path: fix

master
Denis Knauf 2013-01-21 14:09:09 +01:00
parent 404ff9d885
commit af9e6aebe5
1 changed files with 1 additions and 2 deletions

View File

@ -137,8 +137,7 @@ module Ace
end
def server_path
absolute = self.output_path.sub(/^output\//, "")
absolute.sub! %r<(\.[^./])\.[^/]+$>, '\1'
absolute = self.output_path.sub(/^output\//, "").sub %r<(\.[^./]+)\.[^/]+$>, '\1'
"/#{absolute}"
end