diff options
author | Peter Wu <peter@lekensteyn.nl> | 2016-12-22 12:29:03 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2016-12-22 12:29:03 +0100 |
commit | 10ccc16731869e07598344c4de19b2ade91b949d (patch) | |
tree | 273c916136f6dbe451debcbf032bb1f771e5a584 | |
parent | 8e33b47913fbcfa8fdfd7e58bf6cd1c3f525a448 (diff) | |
download | wireshark-notes-10ccc16731869e07598344c4de19b2ade91b949d.tar.gz |
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.
-rw-r--r-- | lua/file-zip.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |