mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 15:30:39 -07:00
Cast input to string before spliting
This commit is contained in:
@@ -75,7 +75,7 @@ module Liquid
|
||||
# <div class="summary">{{ post | split '//' | first }}</div>
|
||||
#
|
||||
def split(input, pattern)
|
||||
input.split(pattern)
|
||||
input.to_s.split(pattern)
|
||||
end
|
||||
|
||||
def strip(input)
|
||||
|
||||
Reference in New Issue
Block a user