mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 11:20:41 -07:00
These are strings already.
This commit is contained in:
@@ -133,9 +133,9 @@ module Liquid
|
|||||||
else
|
else
|
||||||
case key
|
case key
|
||||||
when /^'(.*)'$/ # Single quoted strings
|
when /^'(.*)'$/ # Single quoted strings
|
||||||
$1.to_s
|
$1
|
||||||
when /^"(.*)"$/ # Double quoted strings
|
when /^"(.*)"$/ # Double quoted strings
|
||||||
$1.to_s
|
$1
|
||||||
when /^(\d+)$/ # Integer and floats
|
when /^(\d+)$/ # Integer and floats
|
||||||
$1.to_i
|
$1.to_i
|
||||||
when /^\((\S+)\.\.(\S+)\)$/ # Ranges
|
when /^\((\S+)\.\.(\S+)\)$/ # Ranges
|
||||||
|
|||||||
Reference in New Issue
Block a user