From d1ab26196adfdf489b043e405caeb6c8ac1ab0b4 Mon Sep 17 00:00:00 2001 From: TheOnePath Date: Tue, 10 Jan 2023 22:33:45 +0000 Subject: [PATCH] Updated presser/utils.lua Updated M@clean_buf. If the type is not string or is nil, return empty string. --- presser/utils.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/presser/utils.lua b/presser/utils.lua index 98573fc..13583c6 100644 --- a/presser/utils.lua +++ b/presser/utils.lua @@ -28,8 +28,7 @@ end -- :@dev: clean the text once it has been fetched from buffer M.clean_buf = function ( text ) if not type(text) == "string" or text == nil then - print("[DEBUG - clean_buf] Given input is not of type string.") - return + return "" end return escape_chars( text )