Skip to content

Commit

Permalink
Fix inverse separator condition
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Feb 11, 2021
1 parent 58fad41 commit 33f9331
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/irb/ext/loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,9 @@ def absolute_path?(path)
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
Expand Down

0 comments on commit 33f9331

Please sign in to comment.