zarmstrong / hlo-importer

A module for Foundry VTT that converts and imports Herolab Online 2e characters.
MIT License
6 stars 8 forks source link

replace all by Regex #10

Closed Drental closed 3 years ago

Drental commented 3 years ago

It worked for the Inline saves, so test it :shrug:

zarmstrong commented 3 years ago

I think it needs to be importPCID=new RegExp(charImport._id,"g") per https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/global

Otherwise I think it only matches the first instance.

Drental commented 3 years ago

Oh, yea. I had a /string/g in my stash I just forgot to add the g here (assumed it was default) Good catch

zarmstrong commented 3 years ago

fixes #11