[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: split and splitlines (in 5.3)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 12 Aug 2019 10:16:48 -0300
> It seems that the behavior of string.gsub changed from 5.2 to 5.3. In
> 5.1 and 5.2 the
> arr = split(bigstr, "([^\n]*)\n?")
> would always generate an sequence with an empty string at its end, and
> table.remove would delete it.
> I remember ___veeeery___ vaguely a discussion here in the list about a
> change in string.gsub that made it stop substituting the empty sting
> at the end, but I'm not being able to find it now... anyone has a
> pointer to it?
See also commit 783aa8a9da5f3.