Remove default value for replacement argument

This commit is contained in:
Anders Søgaard
2021-09-10 18:02:35 +02:00
parent f5e77b6d1d
commit b5abd145e3
+1 -1
View File
@@ -297,7 +297,7 @@ module Liquid
end
# Replace the last occurrences of a string with another
def replace_last(input, string, replacement = '')
def replace_last(input, string, replacement)
start_index = input.to_s.rindex(string.to_s)
if !start_index.nil? && start_index > -1