mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 11:20:41 -07:00
Remove string formatter
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user