mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
freeze '-' VariableLookup in Expression
This commit is contained in:
@@ -58,7 +58,9 @@ module Liquid
|
||||
'false' => false,
|
||||
'blank' => '',
|
||||
'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
|
||||
|
||||
DOT = ".".ord
|
||||
|
||||
Reference in New Issue
Block a user