allow split to accept numeric

This commit is contained in:
Richard Monette
2016-10-26 10:43:04 -04:00
parent 64fca66ef5
commit 143ba39a08
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ module Liquid
# <div class="summary">{{ post | split '//' | first }}</div>
#
def split(input, pattern)
input.to_s.split(pattern)
input.to_s.split(pattern.to_s)
end
def strip(input)