We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ceaed7 commit 3cd93d0Copy full SHA for 3cd93d0
lua/papis/papis-storage.lua
@@ -193,8 +193,8 @@ function M.get_data_full(metadata)
193
194
-- ensure that everything is of the correct type
195
if type_of_val == "text" then
196
- -- convert value to string and remove newline characters
197
- data[key] = string.gsub(tostring(entry[key]), "[\n\r]", "")
+ -- convert value to string and remove stray control characters
+ data[key] = string.gsub(tostring(entry[key]), "[%c]", "")
198
elseif type_of_val == "luatable" then
199
if type(entry[key]) == "table" then
200
data[key] = entry[key]
0 commit comments