ruby-changes:60507
From: Nobuyoshi <ko1@a...>
Date: Thu, 26 Mar 2020 17:44:29 +0900 (JST)
Subject: [ruby-changes:60507] b08c1bea36 (master): [ruby/irb] Unnamed groups are not captured when named groups are used
https://git.ruby-lang.org/ruby.git/commit/?id=b08c1bea36 From b08c1bea3632062d0689affac4e0e78523349af0 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 30 Jan 2020 12:08:37 +0900 Subject: [ruby/irb] Unnamed groups are not captured when named groups are used https://github.com/ruby/irb/commit/0a641a69b0 diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 7277bf5..c44aa90 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -148,7 +148,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/completion.rb#L148 select_message(receiver, message, candidates, sep) end - when /^(?<num>-?(0[dbo])?[0-9_]+(\.[0-9_]+)?(([eE][+-]?[0-9]+)?i?|r)?)(?<sep>\.|::)(?<mes>[^.]*)$/ + when /^(?<num>-?(?:0[dbo])?[0-9_]+(?:\.[0-9_]+)?(?:(?:[eE][+-]?[0-9]+)?i?|r)?)(?<sep>\.|::)(?<mes>[^.]*)$/ # Numeric receiver = $~[:num] sep = $~[:sep] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/