mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-02 16:45:12 -07:00
Add param to accept invalid input in to_integer
This commit is contained in:
@@ -16,8 +16,8 @@ module Liquid
|
||||
end
|
||||
|
||||
def evaluate(context)
|
||||
start_int = Utils.to_integer(context.evaluate(@start_obj))
|
||||
end_int = Utils.to_integer(context.evaluate(@end_obj))
|
||||
start_int = Utils.to_integer(context.evaluate(@start_obj), true)
|
||||
end_int = Utils.to_integer(context.evaluate(@end_obj), true)
|
||||
start_int..end_int
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user