diff --git a/rslib/src/template.rs b/rslib/src/template.rs index 71b086b16..bfee3723a 100644 --- a/rslib/src/template.rs +++ b/rslib/src/template.rs @@ -67,7 +67,7 @@ fn handle_token(s: &str) -> nom::IResult<&str, Token> { /// classify handle based on leading character fn classify_handle(s: &str) -> Token { - let start = s.trim(); + let start = s.trim_start_matches('{').trim(); if start.len() < 2 { return Token::Replacement(start); }