MostTornBrain / pf2e-md-exporter

Foundry VTT markdown exporter optimized for PF2E content.
MIT License
8 stars 3 forks source link

@Check[]{desc} regex is too greedy #22

Closed MostTornBrain closed 2 months ago

MostTornBrain commented 2 months ago

The change made to address the missing DC value for exported journal entries has a regex that is too greedy and it ends up combining multiple tags into a single tag. For example, in Noxious Needler, there is this text:

Sickness: @Check[type:fortitude|dc:26|name:Alchemical Sickness|traits:disease] save or @UUID[Compendium.pf2e.conditionitems.Item.fesd1n5eVhpCSS18]{Sickened 1}

The regex is using the trailing ]{Sickened 1} and treating it as the end of the @Check tag and produces the text "Sickness: DC 26 Sickened 1", which is obviously incorrect.

This issue will be fixed in the next update.