Document remove_first string filter

This commit is contained in:
Dave Geddes
2022-03-14 19:26:26 +00:00
parent eaa6729da0
commit e91b0caabf
+6 -1
View File
@@ -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