From 45f186b4dfeddf9d37d404af9a90889c08e881fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20S=C3=B8gaard?= Date: Fri, 17 Sep 2021 08:33:59 +0200 Subject: [PATCH] Remove string formatter --- lib/liquid/standardfilters.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/liquid/standardfilters.rb b/lib/liquid/standardfilters.rb index aa0a3821..bd2a128f 100644 --- a/lib/liquid/standardfilters.rb +++ b/lib/liquid/standardfilters.rb @@ -308,12 +308,12 @@ module Liquid # remove the first occurrences of a substring def remove_first(input, string) - replace_first(input.to_s, string, '') + replace_first(input, string, '') end # remove the last occurences of a substring def remove_last(input, string) - replace_last(input.to_s, string, '') + replace_last(input, string, '') end # add one string to another