summaryrefslogtreecommitdiff
path: root/lib/yaml
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-10 09:43:54 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-10 09:43:54 +0000
commit45278aeb762beec8d9611cb55b682f13253ae4b1 (patch)
treea951722def794a5383f78c639d0b91fe0952dac1 /lib/yaml
parent304a99ff6511593385240b0d53904374822a2dee (diff)
lib/yaml/ypath.rb: escape '['.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml')
-rw-r--r--lib/yaml/ypath.rb2
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 = $'