summaryrefslogtreecommitdiffstats
path: root/lib/rexml/quickpath.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rexml/quickpath.rb')
-rw-r--r--lib/rexml/quickpath.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rexml/quickpath.rb b/lib/rexml/quickpath.rb
index c099db857..2c54ac199 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