Cast input to string before spliting

This commit is contained in:
Jean Boussier
2014-08-07 14:01:44 -04:00
parent 4b22fc8d1b
commit df6b442816
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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)