From 14a69fcc54e2a7de9a999e930c8b39be1ba27fb3 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 1 Jan 2023 10:44:55 -0800 Subject: [PATCH] Use parse_align --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 557f3927..cb55f4fc 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -2439,7 +2439,7 @@ FMT_CONSTEXPR FMT_INLINE auto parse_format_specs( auto c = '\0'; if (end - begin > 1) { auto next = to_ascii(begin[1]); - c = next == '<' || next == '>' || next == '^' ? '\0' : to_ascii(*begin); + c = parse_align(next) == align::none ? to_ascii(*begin) : '\0'; } else { if (begin == end) return begin; c = to_ascii(*begin);