From 53daa93cf45ea6ddf8d068c1dd4e40b76d95bd33 Mon Sep 17 00:00:00 2001 From: kvan7 Date: Thu, 18 Jun 2026 22:02:31 -0500 Subject: [PATCH] tooltip quality on jewelery Fixes #890 --- renderer/src/parser/Parser.ts | 4 ++-- renderer/src/web/price-check/trade/pathofexile-trade.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/renderer/src/parser/Parser.ts b/renderer/src/parser/Parser.ts index 94e74e60..d89bdde8 100644 --- a/renderer/src/parser/Parser.ts +++ b/renderer/src/parser/Parser.ts @@ -1899,8 +1899,8 @@ export function removeLinesEnding( ); } -export function parseAffixStrings(clipboard: string): string { - return clipboard.replace(/\[([^\]|]+)\|?([^\]]*)\]/g, (_, part1, part2) => { +export function parseAffixStrings(text: string): string { + return text.replace(/\[([^\]|]+)\|?([^\]]*)\]/g, (_, part1, part2) => { return part2 || part1; }); } diff --git a/renderer/src/web/price-check/trade/pathofexile-trade.ts b/renderer/src/web/price-check/trade/pathofexile-trade.ts index 000b1521..dd4ea45d 100644 --- a/renderer/src/web/price-check/trade/pathofexile-trade.ts +++ b/renderer/src/web/price-check/trade/pathofexile-trade.ts @@ -1753,7 +1753,7 @@ function buildNameBlock( continue; case TradePropType.Quality: - text = "item.quality"; + text = `${parseAffixStrings(name)}: {0}`; break; case TradePropType.WeaponSpeed: