diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-10 09:43:54 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-10 09:43:54 +0000 |
commit | 45278aeb762beec8d9611cb55b682f13253ae4b1 (patch) | |
tree | a951722def794a5383f78c639d0b91fe0952dac1 | |
parent | 304a99ff6511593385240b0d53904374822a2dee (diff) | |
download | ruby-45278aeb762beec8d9611cb55b682f13253ae4b1.tar.gz |
lib/yaml/ypath.rb: escape '['.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | lib/yaml/ypath.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yaml/ypath.rb b/lib/yaml/ypath.rb index 713c4de76e..81348ca043 100644 --- a/lib/yaml/ypath.rb +++ b/lib/yaml/ypath.rb @@ -10,7 +10,7 @@ module YAML @segments = [] @predicates = [] @flags = nil - while str =~ /^\/?(\/|[^\/[]+)(?:\[([^\]]+)\])?/ + while str =~ /^\/?(\/|[^\/\[]+)(?:\[([^\]]+)\])?/ @segments.push $1 @predicates.push $2 str = $' |