diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-06-29 16:50:09 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-06-29 07:52:46 +0000 |
| commit | 9598ed9d1c56e971e76d4bbbacef6ec9643e12dc (patch) | |
| tree | 4443045e90e5925e37540d7c981618e441212b42 /lib/optparse.rb | |
| parent | 259b0233d826104840d0b52ebb14e0a3435d4497 (diff) | |
[ruby/optparse] JRuby does not have EXECUTABLE_EXTS in RbConfg::CONFIG
https://github.com/ruby/optparse/commit/15b2f00b6b
Diffstat (limited to 'lib/optparse.rb')
| -rw-r--r-- | lib/optparse.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/optparse.rb b/lib/optparse.rb index 7838af7783..332aea2148 100644 --- a/lib/optparse.rb +++ b/lib/optparse.rb @@ -1300,7 +1300,7 @@ XXX private def strip_ext(name) # :nodoc: exts = /#{ require "rbconfig" - Regexp.union(RbConfig::CONFIG["EXECUTABLE_EXTS"]) + Regexp.union(*RbConfig::CONFIG["EXECUTABLE_EXTS"]&.split(" ")) }\z/o name.sub(exts, "") end |
