mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 00:40:40 -07:00
Document remove_first string filter
This commit is contained in:
@@ -333,7 +333,12 @@ module Liquid
|
||||
replace(input, string, '')
|
||||
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)
|
||||
replace_first(input, string, '')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user