From 90302e12ca772dda73024bbe80f9e80faf23736f Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 16 Sep 2023 13:00:53 +0200 Subject: mailcap: allow whitespace after subtype --- src/config/mailcap.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/config/mailcap.nim b/src/config/mailcap.nim index 26c3d6b4..249d9082 100644 --- a/src/config/mailcap.nim +++ b/src/config/mailcap.nim @@ -86,7 +86,7 @@ proc consumeTypeField(state: var MailcapParser): Result[string, string] = # subtype while state.has(): let c = state.consume() - if c == ';': + if c in AsciiWhitespace + {';'}: state.reconsume(c) break if c notin AsciiAlphaNumeric + {'-', '.', '*', '_', '+'}: -- cgit