diff --git a/LevelRange-Turtle.toc b/LevelRange-Turtle.toc index e6adadb..5c38570 100644 --- a/LevelRange-Turtle.toc +++ b/LevelRange-Turtle.toc @@ -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 diff --git a/LevelRange.lua b/LevelRange.lua index 91618ef..3d26a83 100644 --- a/LevelRange.lua +++ b/LevelRange.lua @@ -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 diff --git a/Readme.txt b/Readme.txt index 86ae1ac..576bb11 100644 --- a/Readme.txt +++ b/Readme.txt @@ -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 '.