server_path: fix

This commit is contained in:
Denis Knauf 2013-01-21 14:09:09 +01:00
parent 404ff9d885
commit af9e6aebe5

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