From af9e6aebe5ecb2d1966b3d13ea38f9d66b13840e Mon Sep 17 00:00:00 2001 From: Denis Knauf Date: Mon, 21 Jan 2013 14:09:09 +0100 Subject: [PATCH] server_path: fix --- lib/ace.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ace.rb b/lib/ace.rb index f1746f0..9a83158 100644 --- a/lib/ace.rb +++ b/lib/ace.rb @@ -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