From 10ccc16731869e07598344c4de19b2ade91b949d Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Thu, 22 Dec 2016 12:29:03 +0100 Subject: file-zip: remove "._" from field names These were not supposed to be exposed in the actual filters, but are used internally because a table value could not act as both a ProtoField and a table of other ProtoFields. --- lua/file-zip.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/file-zip.lua b/lua/file-zip.lua index d455540..3b58b4e 100644 --- a/lua/file-zip.lua +++ b/lua/file-zip.lua @@ -24,7 +24,7 @@ local function make_fields(field_abbr_prefix, field_defs, hfs_out, hfs_list_out) hfs_out[name], hfs_list_out) else local proto_field_constructor = params[1] - local field_abbr = field_abbr_prefix .. name + local field_abbr = string.gsub(field_abbr_prefix .. name, "%._$", "") local field if type(params[2]) == "string" then -- Name was given, use it -- cgit v1.2.1