mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 09:20:42 -07:00
Remove default value for replacement argument
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user