Skip to main content

closing_brace

Function closing_brace 

Source
fn closing_brace(s: &str) -> Option<usize>
Expand description

Offset of the } that closes a ${ already consumed.

The matching brace, not the first one. ${env:A,${env:B,fallback}} is a documented shape — a default that is itself an expression — and taking find('}') splits it in the middle: with A unset it complains about a ${ the author did terminate, and with A set it yields the value with a stray } welded on. That second one is the failure that matters, because node ends up in every block directory name.