From 93e659f89f555eafdf45b735054ac30ead271523 Mon Sep 17 00:00:00 2001 From: loqusion Date: Mon, 8 Apr 2024 04:56:43 -0500 Subject: [PATCH] fix(template.mustache): match at least 3 list items --- src/hyprshade/template/mustache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hyprshade/template/mustache.py b/src/hyprshade/template/mustache.py index 431f8ad..8143fce 100644 --- a/src/hyprshade/template/mustache.py +++ b/src/hyprshade/template/mustache.py @@ -32,7 +32,7 @@ def nullish_coalesce(text: str, render: Callable[[str], str]): case [lhs, rhs]: rendered_lhs = render(lhs) return rendered_lhs if rendered_lhs.strip() else render(rhs) - case [_, _, *_]: + case [_, _, _, *_]: raise ValueError( "Mustache nullish coalesce operator must occur only once in an expression." )