mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Remove unnecessary capturing group from regex
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user