From 1732439a5c12717793ec05b4f8727432fd132b47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20Lien=20Sell=C3=A6g?= Date: Sun, 8 Feb 2026 01:08:06 +0100 Subject: [PATCH] Fix roundup custom price parsing. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 💘 Generated with Crush Assisted-by: GPT-5.2-Codex via Crush --- TradeSkillMaster/Core/Prices.lua | 2 +- TradeSkillMaster/TradeSkillMaster.toc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TradeSkillMaster/Core/Prices.lua b/TradeSkillMaster/Core/Prices.lua index 3ca5cba..0587fa7 100644 --- a/TradeSkillMaster/Core/Prices.lua +++ b/TradeSkillMaster/Core/Prices.lua @@ -324,7 +324,7 @@ local function ParsePriceString(str, badPriceSource) -- replace math functions special custom function names for word, funcName in pairs(MATH_FUNCTIONS) do - str = gsub(str, word, funcName) + str = gsub(str, "([^%w_])"..word.."([^%w_])", "%1"..funcName.."%2") end -- remove any unused values diff --git a/TradeSkillMaster/TradeSkillMaster.toc b/TradeSkillMaster/TradeSkillMaster.toc index 6afb626..be3035b 100644 --- a/TradeSkillMaster/TradeSkillMaster.toc +++ b/TradeSkillMaster/TradeSkillMaster.toc @@ -2,7 +2,7 @@ ## Title: |cff00fe00TradeSkillMaster: Revived|r ## Notes: Core addon for the TradeSkillMaster suite, revived for Wrath of the Lich King. Does nothing without modules installed. ## Author: Sapu94, Bart39, Gnomezilla [Warmane-Icecrown(A)], BlueAo [Warmane], andrew6180, Yoshiyuka, DimaSheiko, and other contributors... -## Version: 2.3.45 +## Version: 2.3.46 ## SavedVariables: TradeSkillMasterAppDB, AscensionTSMDB ## OptionalDeps: AccurateTime, Ace3, LibDataBroker-1.1, LibDBIcon-1.0, LibExtraTip, TipHelper, LibParse, LibCompress, LibGraph-2.0, SharedMedia, TheUndermineJournal, TheUndermineJournalGE ## X-Embeds: AccurateTime, Ace3, LibDataBroker-1.1, LibDBIcon-1.0, LibExtraTip, TipHelper, LibParse, LibCompress, LibGraph-2.0