mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
fix: default to precedence 1 for custom operators
This commit is contained in:
committed by
Jun Yang
parent
dce75a1a22
commit
20f559e545
@@ -25,6 +25,7 @@ export class OperatorToken extends Token {
|
||||
this.operator = this.getText()
|
||||
}
|
||||
getPrecedence () {
|
||||
return precedence[this.getText()]
|
||||
const key = this.getText()
|
||||
return key in precedence ? precedence[key] : 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user