diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-08 16:42:46 +0200 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-08 16:42:46 +0200 | 
| commit | f67ac543b4ef8f10dcb8d1e70d1ee5269f08745c (patch) | |
| tree | fe886fbce75272efd72bf63afb07064b3da64f40 /lib | |
| parent | 9872c959f0e95456612828c773319138e3a051f5 (diff) | |
| download | edoors-ruby-f67ac543b4ef8f10dcb8d1e70d1ee5269f08745c.zip edoors-ruby-f67ac543b4ef8f10dcb8d1e70d1ee5269f08745c.tar.gz | |
Spot: reorder regexp substitutions
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/evendoors/spot.rb | 2 | 
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 | 
