From 45278aeb762beec8d9611cb55b682f13253ae4b1 Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 10 May 2003 09:43:54 +0000 Subject: [PATCH] lib/yaml/ypath.rb: escape '['. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/yaml/ypath.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = $'