This commit is contained in:
Alexander Drozdov
2020-12-15 19:43:03 +02:00
parent 7ad09eee51
commit c96b89425c
+2 -2
View File
@@ -330,8 +330,8 @@ function parseStackSize (section: string[], item: ParsedItem) {
return PARSER_SKIPPED
}
if (section[0].startsWith(_$[C.TAG_STACK_SIZE])) {
// Portal Scroll "Stack Size: 2 448/40"
const [value, max] = section[0].substr(_$[C.TAG_STACK_SIZE].length).replace(/\u00a0/g, '').split('/').map(Number)
// Portal Scroll "Stack Size: 2[localized separator]448/40"
const [value, max] = section[0].substr(_$[C.TAG_STACK_SIZE].length).replace(/[^\d/]/g, '').split('/').map(Number)
item.stackSize = { value, max }
if (item.category === ItemCategory.Seed) {