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." )