Project

General

Profile

Bug #13925 ยป split_limit_1.patch

tompng (tomoya ishida), 09/20/2017 04:31 PM

View differences:

string.c
7371 7371
	else if (lim == 1) {
7372 7372
	    if (RSTRING_LEN(str) == 0)
7373 7373
		return rb_ary_new2(0);
7374
	    return rb_ary_new3(1, str);
7374
	    return rb_ary_new3(1, rb_str_dup(str));
7375 7375
	}
7376 7376
	i = 1;
7377 7377
    }