From 0448744048dfeecb3e6cf98122610f2a2d023907 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 2 Jun 2024 08:11:19 +0000 Subject: [PATCH] Generate (3e3893d48357c04c4f3a7088819880905a64742d) --- REXML/IOSource.html | 18 ++++++++++-------- REXML/Source.html | 19 ++++++++++++------- js/search_index.js.gz | Bin 21749 -> 21749 bytes 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/REXML/IOSource.html b/REXML/IOSource.html index 37018b66..8fc92a7d 100644 --- a/REXML/IOSource.html +++ b/REXML/IOSource.html @@ -147,7 +147,7 @@

Public Class Methods

-
# File lib/rexml/source.rb, line 144
+            
# File lib/rexml/source.rb, line 149
 def initialize(arg, block_size=500, encoding=nil)
   @er_source = @source = arg
   @to_utf = false
@@ -205,7 +205,7 @@ 

Public Instance Methods

-
# File lib/rexml/source.rb, line 219
+            
# File lib/rexml/source.rb, line 226
 def current_line
   begin
     pos = @er_source.pos        # The byte position in the source
@@ -260,7 +260,7 @@ 

Public Instance Methods

-
# File lib/rexml/source.rb, line 214
+            
# File lib/rexml/source.rb, line 221
 def empty?
   super and ( @source.nil? || @source.eof? )
 end
@@ -293,7 +293,7 @@

Public Instance Methods

-
# File lib/rexml/source.rb, line 191
+            
# File lib/rexml/source.rb, line 198
 def ensure_buffer
   read if @scanner.eos? && @source
 end
@@ -331,7 +331,7 @@

Public Instance Methods

-
# File lib/rexml/source.rb, line 198
+            
# File lib/rexml/source.rb, line 205
 def match( pattern, cons=false )
   while true
     if cons
@@ -376,7 +376,7 @@ 

Public Instance Methods

-
# File lib/rexml/source.rb, line 165
+            
# File lib/rexml/source.rb, line 170
 def read(term = nil)
   term = encode(term) if term
   begin
@@ -416,7 +416,7 @@ 

Public Instance Methods

-
# File lib/rexml/source.rb, line 176
+            
# File lib/rexml/source.rb, line 181
 def read_until(term)
   pattern = /#{Regexp.escape(term)}/
   term = encode(term)
@@ -425,7 +425,9 @@ 

Public Instance Methods

@scanner << readline(term) end rescue EOFError - @scanner.rest + rest = @scanner.rest + @scanner.pos = @scanner.string.bytesize + rest else read if @scanner.eos? and !@source.eof? str diff --git a/REXML/Source.html b/REXML/Source.html index f8e9ee91..23df8eb9 100644 --- a/REXML/Source.html +++ b/REXML/Source.html @@ -311,7 +311,7 @@

Public Instance Methods

-
# File lib/rexml/source.rb, line 100
+            
# File lib/rexml/source.rb, line 105
 def current_line
   lines = @orig.split
   res = lines.grep @scanner.rest[0..30]
@@ -347,7 +347,7 @@ 

Public Instance Methods

-
# File lib/rexml/source.rb, line 95
+            
# File lib/rexml/source.rb, line 100
 def empty?
   @scanner.eos?
 end
@@ -419,7 +419,7 @@

Public Instance Methods

-
# File lib/rexml/source.rb, line 75
+            
# File lib/rexml/source.rb, line 80
 def ensure_buffer
 end
@@ -451,7 +451,7 @@

Public Instance Methods

-
# File lib/rexml/source.rb, line 78
+            
# File lib/rexml/source.rb, line 83
 def match(pattern, cons=false)
   if cons
     @scanner.scan(pattern).nil? ? nil : @scanner
@@ -488,7 +488,7 @@ 

Public Instance Methods

-
# File lib/rexml/source.rb, line 86
+            
# File lib/rexml/source.rb, line 91
 def position
   @scanner.pos
 end
@@ -521,7 +521,7 @@

Public Instance Methods

-
# File lib/rexml/source.rb, line 90
+            
# File lib/rexml/source.rb, line 95
 def position=(pos)
   @scanner.pos = pos
 end
@@ -588,7 +588,12 @@

Public Instance Methods

# File lib/rexml/source.rb, line 71
 def read_until(term)
-  @scanner.scan_until(/#{Regexp.escape(term)}/) or @scanner.rest
+  data = @scanner.scan_until(/#{Regexp.escape(term)}/)
+  unless data
+    data = @scanner.rest
+    @scanner.pos = @scanner.string.bytesize
+  end
+  data
 end
diff --git a/js/search_index.js.gz b/js/search_index.js.gz index 53a41a2478ff2c26ec987f959efe30330443c5b7..010f0df8a217cb912a38fdaba8ee48bbdc284877 100644 GIT binary patch delta 17 YcmeymlJV