Skip to content

Commit 6219a21

Browse files
committed
cleanup
1 parent a36511b commit 6219a21

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/xmlparser.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,11 @@ def tag_start(name, attributes)
355355
@room_title = '[' + attributes['subtitle'][3..-1].gsub(/ - \d+$/, '') + ']'
356356
elsif XMLData.game =~ /^DR/
357357
# - [Bosque Deriel, Hermit's Shacks] (230008)
358-
Lich.log("Attributes are #{attributes['subtitle']}")
359358
room = attributes['subtitle'].match(/(?<roomtitle>\[.*?\])(?:\s\((?<uid>(\d+))\))?/)
360359
@room_title = "[#{room[:roomtitle]}]"
361360
@room_id = room[:uid].to_i
362-
Lich.log("@room_title is #{@room_title}")
361+
else
362+
@room_title = String.new
363363
end
364364
end
365365
end
@@ -697,8 +697,6 @@ def text(text_string)
697697
end
698698

699699
if @current_style == 'roomName'
700-
# text.sub(/(\(.*?\))/) { str1 = $1 }
701-
# @room_name = text_string
702700
text_string.sub(/(\[.*?\])/) { @room_name = $1 }
703701
end
704702

0 commit comments

Comments
 (0)