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
+1 -1
View File
@@ -1,6 +1,6 @@
## Interface: 11200
## Title: LevelRange [|cff3fcf26Turtle|r]
## Version: 2.0.6
## Version: 2.0.7
## Author: Bull3t, Tenyar97, rado-boy, blehz, Spartelfant.
## Notes: Shows the zone level range on the World Map. Now with 100% more turtles!
## URL: https://github.com/Spartelfant/LevelRange-Turtle
+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
+4 -1
View File
@@ -9,7 +9,7 @@ Details
----------------------
Title: LevelRange
Interface: 11200
Version: 2.0.6
Version: 2.0.7
Author: Bull3t, Tenyar97, rado-boy, blehz, Spartelfant.
Addon Website: https://github.com/Tenyar97/LevelRange-Turtle
@@ -22,6 +22,9 @@ Current Features:
----------------------
Change Log
----------------------
2.0.7 - Update (Spartelfant)
[*] 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.
2.0.6 - Update (Spartelfant)
[*] Added workaround for game bug that prevented the new Northwind zone from showing a tooltip: The game included a trailing space, so the actual zone name is 'Northwind '.