diff options
author | alpha0x00 <[email protected]> | 2024-07-14 22:01:57 +0800 |
---|---|---|
committer | git <[email protected]> | 2024-07-19 03:03:16 +0000 |
commit | 3222c672628dba20367475cfaf832b82b2cc3d4c (patch) | |
tree | 76d45fd16029eecfadc78fdc25c9ff122c302eb8 /lib | |
parent | 1c81d1a69dfc909baf128d6d1ffe636f2e8a3194 (diff) |
[rubygems/rubygems] Fix line comment issue for map
https://github.com/rubygems/rubygems/commit/7ca06e139b
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/yaml_serializer.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/yaml_serializer.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/yaml_serializer.rb b/lib/bundler/yaml_serializer.rb index 93d08a05aa..ab1eb6dbcf 100644 --- a/lib/bundler/yaml_serializer.rb +++ b/lib/bundler/yaml_serializer.rb @@ -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 diff --git a/lib/rubygems/yaml_serializer.rb b/lib/rubygems/yaml_serializer.rb index af86c63ef7..f89004f32a 100644 --- a/lib/rubygems/yaml_serializer.rb +++ b/lib/rubygems/yaml_serializer.rb @@ -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 |