mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
string.rb: upto to break when the string length is longer than end.
This commit is contained in:
@@ -457,6 +457,8 @@ class String
|
||||
break if exclusive and n == 0
|
||||
yield bs
|
||||
break if n == 0
|
||||
bsiz = bs.size
|
||||
break if bsiz > max.size || bsiz == 0
|
||||
bs = bs.succ
|
||||
end
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user