summaryrefslogtreecommitdiffstats
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
commitc5d8324786198194c36991e1ed75058df0327a66 (patch)
treea951722def794a5383f78c639d0b91fe0952dac1
parentd32906017c6141a10e064381128fd02c11723550 (diff)
downloadruby-c5d8324786198194c36991e1ed75058df0327a66.tar.gz
ruby-c5d8324786198194c36991e1ed75058df0327a66.tar.xz
ruby-c5d8324786198194c36991e1ed75058df0327a66.zip
lib/yaml/ypath.rb: escape '['.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 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 = $'