Terminate loop if generated string longer than the last; ref
MODIFY
mrbgems/mruby-string-ext/mrblib/string.rb
mrbgems/mruby-string-ext/mrblib/string.rb
@@ -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

Terminate loop if generated string longer than the last; ref #3489