mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 02:40:41 -07:00
Remove default value for replacement argument
This commit is contained in:
@@ -297,7 +297,7 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Replace the last occurrences of a string with another
|
# 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)
|
start_index = input.to_s.rindex(string.to_s)
|
||||||
|
|
||||||
if !start_index.nil? && start_index > -1
|
if !start_index.nil? && start_index > -1
|
||||||
|
|||||||
Reference in New Issue
Block a user