When pasting names with "MR" included (e.g. "VALE TEMROS") copied from pathfinder PDFs an uncaught TypeError occurs. Issue appears to be due to the following snippet in parseBase:
// Parse Mythic Rank (uses notesParser, as mr currently is not supported by FVTT PF1)
if (!parsedSubCategories["mr"]) {
if (lineContent.search(/\sMR\s/) !== -1) {
let parserMR = sbcMapping.map.base.mr
let mr = lineContent.match(/\sMR\s(\d+)/)[1].trim()
parsedSubCategories["mr"] = await parserMR.parse(mr, line)
Changing name to lowercase appears to solve issue, but seems to occur to any name with capital "MR" included in the name.
When pasting names with "MR" included (e.g. "VALE TEMROS") copied from pathfinder PDFs an uncaught TypeError occurs. Issue appears to be due to the following snippet in parseBase:
// Parse Mythic Rank (uses notesParser, as mr currently is not supported by FVTT PF1) if (!parsedSubCategories["mr"]) { if (lineContent.search(/\sMR\s/) !== -1) { let parserMR = sbcMapping.map.base.mr let mr = lineContent.match(/\sMR\s(\d+)/)[1].trim() parsedSubCategories["mr"] = await parserMR.parse(mr, line)
Changing name to lowercase appears to solve issue, but seems to occur to any name with capital "MR" included in the name.