summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAkira Matsuda <[email protected]>2023-12-14 02:30:04 +0900
committerHiroshi SHIBATA <[email protected]>2023-12-14 07:47:56 +0900
commit75c40802cb06d83fc2c3d0eca6d904fa41307230 (patch)
treef68bb0bdb1a338c6515d5a51ceae4378fa259e98 /lib
parentbaf2ec2ca8127cd610a3681a1e84ebcb404fe8f2 (diff)
[Bug #20060] Properly return matched gem name in case of EXACT
this follows up 4e6861d3376eb7857d2b0a947c97b6fec8e5bf37
Diffstat (limited to 'lib')
-rw-r--r--lib/bundled_gems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundled_gems.rb b/lib/bundled_gems.rb
index 35538bfbf7..e2a0456b18 100644
--- a/lib/bundled_gems.rb
+++ b/lib/bundled_gems.rb
@@ -85,7 +85,7 @@ module Gem::BUNDLED_GEMS
else
return
end
- EXACT[n] or PREFIXED[n = n[%r[\A[^/]+(?=/)]]] && n
+ (EXACT[n] or PREFIXED[n = n[%r[\A[^/]+(?=/)]]]) && n
end
def self.warning?(name, specs: nil)