From b0e9966dd937cbca569bd699c9e7e48a4d08f31f Mon Sep 17 00:00:00 2001 From: Chen Mulong Date: Fri, 9 May 2025 21:38:29 +0800 Subject: [PATCH] Fix ';' for mimetype parameters See https://en.wikipedia.org/wiki/Media_type mime-type = type "/" [tree "."] subtype ["+" suffix]* [";" parameter]; The semicolon caused Mac richclip report errors. --- lua/richclip/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/richclip/utils.lua b/lua/richclip/utils.lua index 18aa560..e67ff0d 100644 --- a/lua/richclip/utils.lua +++ b/lua/richclip/utils.lua @@ -81,7 +81,7 @@ end ---Return a list of common mime-types for plain text UTILS.common_text_mime_types = function() local text_mime_types = { - "text/plain:charset=utf-8", + "text/plain;charset=utf-8", "STRING", "UTF8_STRING", "text/plain",