From b83b27cddbd8b7147dfbfb3c00102da365e97760 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 11 Feb 2021 21:03:11 +0900 Subject: [PATCH] [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 42df0ac6c7..af028996e7 100644 --- a/lib/irb/ext/loader.rb +++ b/lib/irb/ext/loader.rb @@ -38,11 +38,9 @@ module IRB # :nodoc: 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