Skip to content

Commit aa0b72a

Browse files
disallow whitespace in wildcards
1 parent 8665f67 commit aa0b72a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

basex-core/src/main/java/org/basex/query/QueryParser.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,6 +2459,7 @@ private ExprInfo simpleNodeTest(final Kind kind, final boolean all) throws Query
24592459
} else {
24602460
NameTest.Scope scope = NameTest.Scope.FULL;
24612461
if(!name.hasPrefix()) {
2462+
pos = p;
24622463
if(consume(":*")) {
24632464
// name test: prefix:*
24642465
name = new QNm(concat(name.string(), cpToken(':')));

0 commit comments

Comments
 (0)