Skip to content

Commit

Permalink
fix(path): fix realative path for sibling in array (#1492)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDs authored May 24, 2021
1 parent 1dcb1f1 commit 860264d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/path/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
)
Expand Down

0 comments on commit 860264d

Please sign in to comment.