Skip to content

Commit

Permalink
Humblewood parsing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Mar 29, 2024
1 parent aa08b8f commit be74bd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Next Up

- Handle some odd formating or Humblewood Monsters.

# 5.1.3

- Aspect of the Beast: Bear effect. (Thanks to @motomoto0295 )
Expand Down
2 changes: 2 additions & 0 deletions src/parser/monster/features/DDBMonsterFeatureFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,8 @@ export default class DDBMonsterFeatureFactory {
this.html[type] = DDBMonsterFeatureFactory.replaceRollable(utils.replaceHtmlSpaces(`${html}`))
.replace(/<\/strong> <strong>/g, "")
.replace(/<\/strong><strong>/g, "")
.replace(/<strong>\.<\/strong>/g, ".")
.replace(/<em>\.<\/em>/g, ".")
.replace(/&shy;/g, "");

switch (type) {
Expand Down

0 comments on commit be74bd8

Please sign in to comment.