Skip to content

Commit

Permalink
Merge pull request #189 from nobu/fix-separator
Browse files Browse the repository at this point in the history
Fix inverse separator condition
  • Loading branch information
aycabta authored Feb 11, 2021
2 parents 58fad41 + 33f9331 commit b20d15a
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 b20d15a

Please sign in to comment.