summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-11 08:10:07 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-11 08:10:07 +0000
commitd430692b95b459b3706cda58e6e3b56406fab76a (patch)
treeb8c5199062da96bbf515307d08375512e3e81035
parent6e41de6767a282e4b133d3c80085c294bc49b307 (diff)
* lib/rexml/quickpath.rb (REXML::QuickPath::match):
escape '[' to avoid warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/rexml/quickpath.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 2a5699496e..0c5092a6a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Oct 11 17:09:21 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/rexml/quickpath.rb (REXML::QuickPath::match):
+ escape '[' to avoid warning.
+
Sat Oct 11 16:08:41 2003 Tanaka Akira <akr@m17n.org>
* lib/pathname.rb (realpath): check existence of the file.
diff --git a/lib/rexml/quickpath.rb b/lib/rexml/quickpath.rb
index 2c54ac1999..c099db8579 100644
--- a/lib/rexml/quickpath.rb
+++ b/lib/rexml/quickpath.rb
@@ -31,7 +31,7 @@ module REXML
results = filter([element], path)
when /^\*/u
results = filter(element.to_a, path)
- when /^[[!\w:]/u
+ when /^[\[!\w:]/u
# match on child
matches = []
children = element.to_a