Skip to content

Commit

Permalink
Fixed error in chars removal commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Icelk committed Nov 19, 2023
1 parent dadb1b3 commit e5cc1b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/src/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ pub async fn handle_template(
}
Stage::Placeholder if escaped != 1 => {
// If placeholder closed
if byte == b'[' {
if byte == b']' {
// Check if name is longer than empty
if position.checked_sub(placeholder_start + 3).is_some() {
// Good; we have UTF-8
Expand Down

0 comments on commit e5cc1b3

Please sign in to comment.