Skip to content

Commit 399e83d

Browse files
committed
xpah abbreviate: add missing "/" to :descendant_or_self/:self/:parent
GitHub: fix GH-97 Reported by pulver. Thanks!!!
1 parent e08c52f commit 399e83d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rexml/parsers/xpathparser.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ def abbreviate( path )
5252
when :child
5353
string << "/" if string.size > 0
5454
when :descendant_or_self
55-
string << "/"
55+
string << "//"
5656
when :self
57-
string << "."
57+
string << "/"
5858
when :parent
59-
string << ".."
59+
string << "/.."
6060
when :any
6161
string << "*"
6262
when :text

0 commit comments

Comments
 (0)