[#81999] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — ko1@...
Issue #13737 has been updated by ko1 (Koichi Sasada).
4 messages
2017/07/11
[#82005] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — nobu@...
Issue #13737 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/07/12
[#82102] Re: register_fstring_tainted:FL_TEST_RAW(str, RSTRING_FSTR) — Eric Wong <normalperson@...>
Koichi Sasada <ko1@atdot.net> wrote:
4 messages
2017/07/18
[#82151] [Ruby trunk Feature#13637] [PATCH] tool/runruby.rb: test with smallest possible machine stack — Rei.Odaira@...
Issue #13637 has been updated by ReiOdaira (Rei Odaira).
3 messages
2017/07/24
[ruby-core:82133] [Ruby trunk Bug#13621] String#split returns an array longer than given limit, when passing a regexp with groups
From:
nagachika00@...
Date:
2017-07-23 07:48:36 UTC
List:
ruby-core #82133
Issue #13621 has been updated by nagachika (Tomoyuki Chikanaga). Backport changed from 2.2: WONTFIX, 2.3: DONE, 2.4: REQUIRED to 2.2: WONTFIX, 2.3: DONE, 2.4: DONE ruby_2_4 r59403 merged revision(s) 59002. ---------------------------------------- Bug #13621: String#split returns an array longer than given limit, when passing a regexp with groups https://bugs.ruby-lang.org/issues/13621#change-65890 * Author: cichol (cichol tsai) * Status: Closed * Priority: Normal * Assignee: stomar (Marcus Stollsteimer) * Target version: * ruby -v: * Backport: 2.2: WONTFIX, 2.3: DONE, 2.4: DONE ---------------------------------------- The String#split documentation(http://ruby-doc.org/core-2.4.1/String.html#method-i-split) described: > If pattern is a Regexp, str is divided where the pattern matches. Whenever the pattern matches a zero-length string, str is split into individual characters. If pattern contains groups, the respective matches will be returned in the array as well. > If limit is a positive number, at most that number of fields will be returned (if limit is 1, the entire string is returned as the only entry in an array). However giving a regexp with groups, split can return fields more than a given limit: ~~~ ruby 'aBa'.split(/(B)()()/, 2) # => ["a", "B", "", "", "a"] ~~~ Shouldn't it be ` ["a", "B"]` ? -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>