• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 10: Line 10:     
local function run_template(template, values)
 
local function run_template(template, values)
 +
-- gsub: ^$()%.[]*+-?
 
if not values.rowspan or values.rowspan == 1 then
 
if not values.rowspan or values.rowspan == 1 then
template = string.gsub(template, 'rowspan="${rowspan}" ', '')
+
template = string.gsub(template, 'rowspan="%${rowspan}" ', '')
 
end
 
end
 
if not values.bg_color or values.bg_color == '' or values.bg_color == 'initial' then
 
if not values.bg_color or values.bg_color == '' or values.bg_color == 'initial' then
template = string.gsub(template, 'background-color:${bg_color}', '')
+
template = string.gsub(template, 'background%-color:%${bg_color}', '')
 
end
 
end
 
if not values.color or values.color == '' or values.color == 'initial' then
 
if not values.color or values.color == '' or values.color == 'initial' then
template = string.gsub(template, 'color:${color};', '')
+
template = string.gsub(template, 'color:%${color};', '')
 
end
 
end
template = string.gsub(template, 'style=""', '')
+
template = string.gsub(template, 'style=""|', '')
 
return format(template, values)
 
return format(template, values)
 
end
 
end
Line 95: Line 96:  
     _ambush_battle_bg_color = "#FFB74D",
 
     _ambush_battle_bg_color = "#FFB74D",
 
})
 
})
+
 
 
function NodeInfo:node(row)
 
function NodeInfo:node(row)
 
     local color, bg_color = "initial", "initial"
 
     local color, bg_color = "initial", "initial"
7,212

edits

Navigation menu