From 75da068a1eca10635c8a32f83d2ce3cfb28b522c Mon Sep 17 00:00:00 2001 From: Alexander Drozdov Date: Sun, 8 Aug 2021 14:44:33 +0300 Subject: [PATCH] fix: poeprices sometimes not working --- src/web/price-check/price-prediction/poeprices.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/price-check/price-prediction/poeprices.ts b/src/web/price-check/price-prediction/poeprices.ts index 25502cae..3244998f 100644 --- a/src/web/price-check/price-prediction/poeprices.ts +++ b/src/web/price-check/price-prediction/poeprices.ts @@ -104,5 +104,7 @@ function querystring (q: Record) { */ function transformItemText (rawText: string) { // this may not account for all cases - return rawText.replace(/(?<=\d)(\([^)]+\))/gm, '') + return rawText + .replace(/(?<=\d)(\([^)]+\))/gm, '') + .replace(/^\{.+\}$\n/gm, '') }