Remove unnecessary capturing group from regex

This commit is contained in:
Oliver Hamlet
2025-04-29 19:17:47 +01:00
parent b78a6eb2bb
commit a951bd3a62
+1 -1
View File
@@ -305,7 +305,7 @@ impl TryFromYaml for Message {
reason = "Only panics if the hardcoded regex string is invalid"
)]
static FMT_REGEX: LazyLock<Regex> = LazyLock::new(|| {
Regex::new(r"\{(\d+)\}").expect("hardcoded fmt placeholder regex should be valid")
Regex::new(r"\{\d+\}").expect("hardcoded fmt placeholder regex should be valid")
});
for mc in &mut content {