mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Terminate loop if generated string longer than the last; ref #3489
This commit is contained in:
@@ -345,6 +345,7 @@ class String
|
||||
return self if !excl && str == other_str
|
||||
str = str.succ
|
||||
return self if excl && str == other_str
|
||||
return self if str.size > other_str.size
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user