mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
Fix message merging script's manipulation patterns to mean we don't need any code changes on the C side.
svn path=/trunk/netsurf/; revision=13668
This commit is contained in:
parent
bf5459c18b
commit
104e19994e
@ -35,9 +35,10 @@ table.sort(sorted)
|
||||
io.stderr:write("working through en...\n")
|
||||
|
||||
local manipulators = {
|
||||
{ "^ami(.*)", "ami.%1" },
|
||||
{ "^gtk(.*)", "gtk.%1" },
|
||||
{ "^Help(.*)", "ro.Help%1" },
|
||||
{ "^(ami.*)", "ami.%1" },
|
||||
{ "^(gtk.*)", "gtk.%1" },
|
||||
{ "^(Help.*)", "ro.%1" },
|
||||
{ "^(ARexx.*)", "ami.%1" },
|
||||
|
||||
{ "^(.*)$", "all.%1" } -- must be last
|
||||
}
|
||||
@ -45,7 +46,6 @@ local manipulators = {
|
||||
local function manipulate_tag(t)
|
||||
for _, m in ipairs(manipulators) do
|
||||
local r, s = t:gsub(m[1], m[2])
|
||||
-- if s > 0 then io.stderr:write(("*** '%s' -> '%s' (%d)\n"):format(t, r, s)) end
|
||||
if s > 0 then return r end
|
||||
end
|
||||
return t
|
||||
|
Loading…
Reference in New Issue
Block a user