[rubygems/rubygems] Only convert old URL key name when it's contained double underscore

https://github.com/rubygems/rubygems/commit/a4bfa2ef94
This commit is contained in:
Hiroshi SHIBATA 2023-04-17 16:10:26 +09:00 committed by git
parent e684eb9e61
commit 7e537e9613

View File

@ -58,7 +58,7 @@ module Bundler
str.split(/\r?\n/).each do |line|
if match = HASH_REGEX.match(line)
indent, key, quote, val = match.captures
key = convert_to_backward_compatible_key(key)
key = convert_to_backward_compatible_key(key) if key.match?(/__/)
key = key[1..-1].to_sym if key.start_with?(":")
depth = indent.scan(/ /).length
if quote.empty? && val.empty?