Ensure liquid value during spaceship comparisons.

This commit is contained in:
Dominic Petrick
2025-04-07 17:33:29 +02:00
parent 2b75bfaff4
commit 3282008ba5
+1 -1
View File
@@ -1018,7 +1018,7 @@ module Liquid
end
def nil_safe_compare(a, b)
result = a <=> b
result = Utils.to_liquid_value(a) <=> Utils.to_liquid_value(b)
if result
result