fix regex
All checks were successful
Build and Test / splatie (push) Successful in 9m55s

This commit is contained in:
Maple Nebel 2026-07-01 19:16:45 +02:00
commit 92351a02ec

View file

@ -56,7 +56,7 @@ impl Default for ErrorInfo {
}
static ERROR_CODE_REGEX: Lazy<Regex> =
Lazy::new(|| Regex::new(" \\d\\d\\d-\\d\\d\\d\\d ").expect("invalid regex"));
Lazy::new(|| Regex::new("(?<=(^| ))\\d\\d\\d-\\d\\d\\d\\d(?=($| ))").expect("invalid regex"));
pub struct ErrorCodeHandler;