diff --git a/src/core-fmt/include/units/format.h b/src/core-fmt/include/units/format.h index 242ab325..6018d4c3 100644 --- a/src/core-fmt/include/units/format.h +++ b/src/core-fmt/include/units/format.h @@ -427,7 +427,8 @@ public: [[nodiscard]] constexpr auto parse(STD_FMT::basic_format_parse_context& ctx) { auto range = do_parse(ctx); - format_str = std::basic_string_view(&*range.first, static_cast(range.second - range.first)); + if(range.first != range.second) + format_str = std::basic_string_view(&*range.first, static_cast(range.second - range.first)); return range.second; }