There are quick fix bugs here: the first is the space after the character name and the second is when you have a paragon path, epic destiny, or Hybrid Class it does not pick up the class at all. The fixes for both are below, but I decided to start using the Summary Importer rather than the PDF Importer after looking at the format of both, so this fix for Paragon/Epic Destiny just dumps it all into class. There is a better way to do this, but I can't see a benefit of doing the PDF import over doing the better formatted Summary import so I decided to stop work on it. If someone can give me a reason I've missed, I'll pick up where I left off.
Fix space after character name
1.) Find the Lib:RegExParser token and edit the PDFSheetParser macro.
2.) Change [h: nameId = strfind(text, "^(.*?)[0-9]+")] to:
Code: Select all
[h: nameId = strfind(text, "^(.*?)\\s[0-9]+")]
3.) Change [h:lcId = strfind(text, "([0-9]+)\\s(\w+)\\s[0-9,]+(?=<br>Character)")] to:
Code: Select all
[h:lcId = strfind(text, "([0-9]+)\\s(.*)\\s[0-9,]+(?=<br>Character)")]