Updated presser/utils.lua
Updated M@clean_buf. If the type is not string or is nil, return empty string.
This commit is contained in:
parent
4d40f43a73
commit
d1ab26196a
|
|
@ -28,8 +28,7 @@ end
|
||||||
-- :@dev: clean the text once it has been fetched from buffer
|
-- :@dev: clean the text once it has been fetched from buffer
|
||||||
M.clean_buf = function ( text )
|
M.clean_buf = function ( text )
|
||||||
if not type(text) == "string" or text == nil then
|
if not type(text) == "string" or text == nil then
|
||||||
print("[DEBUG - clean_buf] Given input is not of type string.")
|
return ""
|
||||||
return
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return escape_chars( text )
|
return escape_chars( text )
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user