[rubygems/rubygems] Fix line comment issue for map

7ca06e139b
This commit is contained in:
alpha0x00 2024-07-14 22:01:57 +08:00 committed by git
parent 1c81d1a69d
commit 3222c67262
3 changed files with 6 additions and 2 deletions

View file

@ -41,7 +41,7 @@ module Bundler
HASH_REGEX = /
^
([ ]*) # indentations
(.+) # key
([^#]+) # key excludes comment char '#'
(?::(?=(?:\s|$))) # : (without the lookahead the #key includes this when : is present in value)
[ ]?
(['"]?) # optional opening quote

View file

@ -41,7 +41,7 @@ module Gem
HASH_REGEX = /
^
([ ]*) # indentations
(.+) # key
([^#]+) # key excludes comment char '#'
(?::(?=(?:\s|$))) # : (without the lookahead the #key includes this when : is present in value)
[ ]?
(['"]?) # optional opening quote