fix for german locale

This commit is contained in:
Manuel Simon Hirsig
2016-05-11 22:36:43 +02:00
parent aec237e162
commit c0a38d0668
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
Aux = {
version = '2.12.1',
version = '2.12.2',
blizzard_ui_shown = false,
orig = {},
}
+2 -2
View File
@@ -313,7 +313,7 @@ end
function private.item_charges(tooltip)
for _, line in ipairs(tooltip) do
local pattern = '^'..gsub(ITEM_SPELL_CHARGES_P1, '%%d', '(%%d+)')..'$'
local pattern = '^'..gsub(gsub(ITEM_SPELL_CHARGES_P1, '%%d', '(%%d+)'), '%%%d+%$d', '(%%d+)')..'$'
local _, _, left_charges_string = strfind(line.left_text or '', pattern)
local _, _, right_charges_string = strfind(line.right_text or '', pattern)
@@ -353,7 +353,7 @@ end
function public.durability(tooltip)
for _, line in ipairs(tooltip) do
local pattern = '^'..gsub(DURABILITY_TEMPLATE, '%%d', '(%%d+)')..'$'
local pattern = '^'..gsub(gsub(DURABILITY_TEMPLATE, '%%d', '(%%d+)'), '%%%d+%$d', '(%%d+)')..'$'
local _, _, left_durability_string, left_max_durability_string = strfind(line.left_text or '', pattern)
local _, _, right_durability_string, right_max_durability_string = strfind(line.right_text or '', pattern)
local durability = tonumber(left_durability_string) or tonumber(right_durability_string)