Update Keycheck.xml

Fixed apostrophes not working; clearing out area name sets back to Unknown.
master
AardCrowley 11 months ago committed by GitHub
parent ee75afb992
commit 3774854965
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -162,7 +162,7 @@ function keyEnd()
for _, key in ipairs(keyringList) do for _, key in ipairs(keyringList) do
stopLoc = #strip_colours(key.keyName) + 14 stopLoc = #strip_colours(key.keyName) + 14
local links = {{label = "Set area for key", start = 15, stop = stopLoc, text = "a='" .. key.keyName .. "';DoAfterSpecial(.1, 'addArea(a)', 12)"}} local links = {{label = "Set area for key", start = 15, stop = stopLoc, text = "a='" .. key.keyName:gsub("'", "__") .. "';DoAfterSpecial(.1, 'addArea(a)', 12)"}}
local area = keyAreas[key.keyName] or "Unknown" local area = keyAreas[key.keyName] or "Unknown"
local addLine =keyString:format(key.keyID, key.keyName .. string.rep(" ", 42-#strip_colours(key.keyName)), convertTime(key.keyExpiry), area) local addLine =keyString:format(key.keyID, key.keyName .. string.rep(" ", 42-#strip_colours(key.keyName)), convertTime(key.keyExpiry), area)
keyringWin:add_text(addLine, true, links) keyringWin:add_text(addLine, true, links)
@ -178,6 +178,7 @@ function keyEnd()
end end
function addArea(keyName) function addArea(keyName)
keyName = keyName:gsub("__", "'")
if not keyAreas[keyName] then if not keyAreas[keyName] then
areaName = utils.inputbox("What area is this key from?", "Area Name") areaName = utils.inputbox("What area is this key from?", "Area Name")
else else
@ -186,7 +187,7 @@ function addArea(keyName)
end end
if areaName then if areaName then
keyAreas[keyName] = areaName keyAreas[keyName] = (areaName ~= "" and areaName or "Unknown")
end end
SetVariable("keyAreas", serialize.save("keyAreas")) SetVariable("keyAreas", serialize.save("keyAreas"))

Loading…
Cancel
Save