From c24d3dab321afbd25d73b428c5b28373be58e75e Mon Sep 17 00:00:00 2001 From: Andy Waite Date: Mon, 14 Mar 2022 13:01:10 -0400 Subject: [PATCH] wip --- lib/liquid/tags/case.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/liquid/tags/case.rb b/lib/liquid/tags/case.rb index d759a41a..d9226bd1 100644 --- a/lib/liquid/tags/case.rb +++ b/lib/liquid/tags/case.rb @@ -10,10 +10,8 @@ module Liquid # @description # Creates a switch statement to execute a particular block of code when a variable has a specified value. # `case` initializes the switch statement, and `when` statements define the various conditions. - # + # # An optional `else` statement at the end of the case provides code to execute if none of the conditions are met. - -An optional else statement at the end of the case provides code to execute if none of the conditions are met. class Case < Block Syntax = /(#{QuotedFragment})/o WhenSyntax = /(#{QuotedFragment})(?:(?:\s+or\s+|\s*\,\s*)(#{QuotedFragment}.*))?/om