From c5d8324786198194c36991e1ed75058df0327a66 Mon Sep 17 00:00:00 2001 From: eban Date: Sat, 10 May 2003 09:43:54 +0000 Subject: lib/yaml/ypath.rb: escape '['. git-svn-id: http://svn.ruby-lang.org/repos/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 713c4de76..81348ca04 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 = $' -- cgit