mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
Support float in variable range
This commit is contained in:
@@ -29,7 +29,7 @@ module Liquid
|
||||
case input
|
||||
when Integer
|
||||
input
|
||||
when NilClass, String
|
||||
when NilClass, String, Float
|
||||
input.to_i
|
||||
else
|
||||
Utils.to_integer(input)
|
||||
|
||||
Reference in New Issue
Block a user