From 040801b32cbc403370553b2dd1d0dbebdb78848d Mon Sep 17 00:00:00 2001 From: Max Stoiber Date: Wed, 12 Feb 2025 08:37:49 -0800 Subject: [PATCH] Fix array `has` filters referring to `some` (#1910) --- lib/liquid/standardfilters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/liquid/standardfilters.rb b/lib/liquid/standardfilters.rb index 4291d86e..08361a46 100644 --- a/lib/liquid/standardfilters.rb +++ b/lib/liquid/standardfilters.rb @@ -456,7 +456,7 @@ module Liquid # Tests if any item in an array has a specific property value. # @liquid_description # This requires you to provide both the property name and the associated value. - # @liquid_syntax array | some: string, string + # @liquid_syntax array | has: string, string # @liquid_return [boolean] def has(input, property, target_value = nil) filter_array(input, property, target_value, false) { |ary, &block| ary.any?(&block) }