mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-28 22:55:12 -07:00
freeze '-' VariableLookup in Expression
This commit is contained in:
@@ -58,7 +58,9 @@ module Liquid
|
|||||||
'false' => false,
|
'false' => false,
|
||||||
'blank' => '',
|
'blank' => '',
|
||||||
'empty' => '',
|
'empty' => '',
|
||||||
'-' => VariableLookup.parse("-", nil),
|
# in lax mode, minus sign can be a VariableLookup
|
||||||
|
# For simplicity and performace, we treat it like a literal
|
||||||
|
'-' => VariableLookup.parse("-", nil).freeze,
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
DOT = ".".ord
|
DOT = ".".ord
|
||||||
|
|||||||
Reference in New Issue
Block a user