Remove string formatter

This commit is contained in:
Anders Søgaard
2021-09-17 08:33:59 +02:00
parent 5187399fd4
commit 45f186b4df
+2 -2
View File
@@ -308,12 +308,12 @@ module Liquid
# remove the first occurrences of a substring # remove the first occurrences of a substring
def remove_first(input, string) def remove_first(input, string)
replace_first(input.to_s, string, '') replace_first(input, string, '')
end end
# remove the last occurences of a substring # remove the last occurences of a substring
def remove_last(input, string) def remove_last(input, string)
replace_last(input.to_s, string, '') replace_last(input, string, '')
end end
# add one string to another # add one string to another