diff options
| -rw-r--r-- | lib/evendoors/particle.rb | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/evendoors/particle.rb b/lib/evendoors/particle.rb index 063862e..82b3983 100644 --- a/lib/evendoors/particle.rb +++ b/lib/evendoors/particle.rb @@ -45,7 +45,9 @@ module EvenDoors          #          def add_dsts paths              paths.split(EvenDoors::LINK_SEP).each do |path| -                @dsts << path.sub(/^\/+/,'').sub(/\/+$/,'').gsub(/\/{2,}/,'/').gsub(/\s+/,'') +                d = path.sub(/^\/+/,'').sub(/\/+$/,'').gsub(/\/{2,}/,'/').gsub(/\s+/,'') +                next if d.empty? or d==EvenDoors::ACT_SEP +                @dsts << d              end          end          # @@ -58,8 +60,7 @@ module EvenDoors          #          def split_dst!              @dst = @room = @door = @action = nil -            n = next_dst -            return if n.nil? or n.empty? or n==EvenDoors::ACT_SEP +            return if (n = next_dst).nil?              p, @action = n.split EvenDoors::ACT_SEP              i = p.rindex EvenDoors::PATH_SEP              if i.nil?  | 
