Skip to content

Commit

Permalink
fix(template.mustache): match at least 3 list items
Browse files Browse the repository at this point in the history
  • Loading branch information
loqusion authored Apr 8, 2024
1 parent f003f8c commit 93e659f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hyprshade/template/mustache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
)
Expand Down

0 comments on commit 93e659f

Please sign in to comment.