diff --git a/packages/path/src/parser.ts b/packages/path/src/parser.ts index 7ada3bf4938..53efc899530 100644 --- a/packages/path/src/parser.ts +++ b/packages/path/src/parser.ts @@ -245,7 +245,7 @@ export class Parser extends Tokenizer { /\[\s*([\+\-\*\/])?\s*([^,\]\s]*)\s*\]/, (match, operator, target) => { if (this.relative !== undefined) - return calculate(target || 1, this.relative, operator) + return calculate(this.relative, target || 1, operator) return match } )