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: