From bbb8691c9064595d440d62f68234a82b2bb3fa1f Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 3 Aug 2022 11:00:58 +0200 Subject: [PATCH] Util: Fix parsing index in automatic mode --- src/util/format/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/format/parser.cpp b/src/util/format/parser.cpp index 3ea7532..6512433 100644 --- a/src/util/format/parser.cpp +++ b/src/util/format/parser.cpp @@ -113,7 +113,7 @@ std::optional Parser::consumeIndex() switch (m_mode) { case ArgumentIndexingMode::Automatic: { - VERIFY(consumeSpecific('}') || consumeSpecific(':'), "expecting '}' or ':', not '%c'", peek()); + VERIFY(consumeSpecific(':') || peek() == '}', "expecting ':' or '}', not '%c'", peek()); return {}; } case ArgumentIndexingMode::Manual: {