ruby-changes:65241
From: Nobuyoshi <ko1@a...>
Date: Fri, 12 Feb 2021 00:02:31 +0900 (JST)
Subject: [ruby-changes:65241] b83b27cddb (master): [ruby/irb] Fix inverse separator condition
https://git.ruby-lang.org/ruby.git/commit/?id=b83b27cddb From b83b27cddbd8b7147dfbfb3c00102da365e97760 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 11 Feb 2021 21:03:11 +0900 Subject: [ruby/irb] Fix inverse separator condition https://github.com/ruby/irb/commit/33f933196f --- lib/irb/ext/loader.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/irb/ext/loader.rb b/lib/irb/ext/loader.rb index 42df0ac..af02899 100644 --- a/lib/irb/ext/loader.rb +++ b/lib/irb/ext/loader.rb @@ -38,11 +38,9 @@ module IRB # :nodoc: https://github.com/ruby/ruby/blob/trunk/lib/irb/ext/loader.rb#L38 else separator = if File::ALT_SEPARATOR - File::SEPARATOR + "[#{Regexp.quote(File::SEPARATOR + File::ALT_SEPARATOR)}]" else - separators = File::SEPARATOR - separators += File::ALT_SEPARATOR if File::ALT_SEPARATOR - "[#{Regexp.quote(separators)}]" + File::SEPARATOR end ABSOLUTE_PATH_PATTERN = # :nodoc: case Dir.pwd -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/