Fixed bug in workaround for game bug

I previously used `string.match()` which is not available in-game, but during testing I had another addon active that made this function available, which is why I did not catch this.
Closes #5
Closes #6
This commit is contained in:
Bart Kuijper
2025-08-16 13:31:44 +02:00
parent 456f04dd51
commit 723123f693
3 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
LEVELRANGE_NAME = "LevelRange"
-- Version Number
LEVELRANGE_VERSION = "2.0.6";
LEVELRANGE_VERSION = "2.0.7";
-- Details
Details = {
@@ -383,7 +383,7 @@ function LevelRange_WorldMapButton_OnUpdate(arg1)
lLR_OldUpdate(arg1);
local areaNameRaw = WorldMapFrame.areaName or "";
local areaNameTrimmed = string.match(areaNameRaw, "^%s*(.-)%s*$"); -- 2.0.6: Added code to trim whitespace to deal with patch 1.18 bug for Northwind zone: In-game name contains trailing space 'Northwind '.
local _, _, areaNameTrimmed = string.find(areaNameRaw, "^%s*(.-)%s*$"); -- 2.0.7: Fixed code added in 2.0.6 to trim whitespace to deal with patch 1.18 bug for Northwind zone: In-game name contains trailing space 'Northwind '.
local zoneNum = GetCurrentMapZone();
-- Zone name equivalence map