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