mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 18:30:40 -07:00
Document remove_first string filter
This commit is contained in:
@@ -333,7 +333,12 @@ module Liquid
|
|||||||
replace(input, string, '')
|
replace(input, string, '')
|
||||||
end
|
end
|
||||||
|
|
||||||
# remove the first occurrences of a substring
|
# @public_docs
|
||||||
|
# @syntax {{ string | remove_first: string }}
|
||||||
|
# @summary Remove the first occurrences of a substring.
|
||||||
|
# @type filter
|
||||||
|
# @category string
|
||||||
|
# @return string
|
||||||
def remove_first(input, string)
|
def remove_first(input, string)
|
||||||
replace_first(input, string, '')
|
replace_first(input, string, '')
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user