summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-08 16:42:46 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-08 16:42:46 +0200
commitf67ac543b4ef8f10dcb8d1e70d1ee5269f08745c (patch)
treefe886fbce75272efd72bf63afb07064b3da64f40
parent9872c959f0e95456612828c773319138e3a051f5 (diff)
downloadedoors-ruby-f67ac543b4ef8f10dcb8d1e70d1ee5269f08745c.zip
edoors-ruby-f67ac543b4ef8f10dcb8d1e70d1ee5269f08745c.tar.gz
Spot: reorder regexp substitutions
-rw-r--r--lib/evendoors/spot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/evendoors/spot.rb b/lib/evendoors/spot.rb
index e88bac7..bf26761 100644
--- a/lib/evendoors/spot.rb
+++ b/lib/evendoors/spot.rb
@@ -18,7 +18,7 @@ module EvenDoors
def path
return @path if @path
p = ( @parent ? @parent.path+'/' : '') + name
- @path = p.sub(/^\/+/,'').gsub(/\/{2,}/,'/').sub(/\/+$/,'')
+ @path = p.sub(/^\/+/,'').sub(/\/+$/,'').gsub(/\/{2,}/,'/')
end
#
end