diff --git a/lib/rexml/source.rb b/lib/rexml/source.rb index 27a6349a..9a9b8f5d 100644 --- a/lib/rexml/source.rb +++ b/lib/rexml/source.rb @@ -87,7 +87,7 @@ def initialize(arg, encoding=nil) detect_encoding end @line = 0 - @term_encord = {} + @encoded_terms = {} end # The current buffer (what we're going to read next) @@ -246,7 +246,7 @@ def read(term = nil, min_bytes = 1) def read_until(term) pattern = Private::PRE_DEFINED_TERM_PATTERNS[term] || /#{Regexp.escape(term)}/ - term = @term_encord[term] ||= encode(term) + term = @encoded_terms[term] ||= encode(term) until str = @scanner.scan_until(pattern) break if @source.nil? break if @source.eof?