Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion truffle/src/main/ruby/core/splitter.rb
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ module Rubinius
class Splitter
def self.split_characters(string, pattern, limit, tail_empty)
if limit
string.chars.take(limit - 1) << (string.chars.size > (limit - 1) ? string[(limit - 1)..-1] : "")
string.chars.take(limit - 1) << (string.size > (limit - 1) ? string[(limit - 1)..-1] : "")
else
ret = string.chars.to_a
# Use #byteslice because it returns the right class and taints

0 comments on commit aa57cb6

Please sign in to comment.