mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
fix: math filters now return number, resolves #110
* fix linting
* numbers are no longer fixed:
i.e. {{0.3 | minus 0.1}} now renders as 0.19999
Stick to JavaScript number behavior, see: 8.0.0
This commit is contained in:
@@ -64,8 +64,8 @@ export function parseExp (exp: string, scope: Scope): any {
|
||||
}
|
||||
|
||||
if ((match = exp.match(lexical.rangeLine))) {
|
||||
const low = parseValue(match[1], scope)
|
||||
const high = parseValue(match[2], scope)
|
||||
const low = evalValue(match[1], scope)
|
||||
const high = evalValue(match[2], scope)
|
||||
return range(low, high + 1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user