From 62e9d25f6bf90ff050395d2fa4594303cc20b877 Mon Sep 17 00:00:00 2001 From: Niklas Mohrin Date: Sat, 28 Mar 2026 22:53:49 +0100 Subject: [PATCH] Add regression test --- src/formatter.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/formatter.rs b/src/formatter.rs index 1b504dd..fb7e512 100644 --- a/src/formatter.rs +++ b/src/formatter.rs @@ -433,5 +433,12 @@ mod tests { ], ); } + + #[test] + /// Regression test for https://github.com/tealdeer-rs/tealdeer/issues/473 + fn prefix_check_character_boundary() { + assert_eq!("Ä".len(), 2); + assert_eq!(run("", r#"Äxx{{x}}"#), [NormalCode("Äxx"), Variable("x")],); + } } }