fix: poeprices sometimes not working

This commit is contained in:
Alexander Drozdov
2021-08-08 14:44:33 +03:00
parent 30ff9d65cd
commit 75da068a1e
@@ -104,5 +104,7 @@ function querystring (q: Record<string, any>) {
*/
function transformItemText (rawText: string) {
// this may not account for all cases
return rawText.replace(/(?<=\d)(\([^)]+\))/gm, '')
return rawText
.replace(/(?<=\d)(\([^)]+\))/gm, '')
.replace(/^\{.+\}$\n/gm, '')
}