Skip to content

Single line words with all capitals parsing incorrectly. #23

@Muzgrob

Description

@Muzgrob

Describe the bug
When the parser comes across a single word on a single line, it will parse it as a new ability, instead of adding it into the previous ability.

To Reproduce
Input used to reproduce.
FLYING POLYP
A 30-foot-long purplish flesh
funnel of eyes, mouths, and
sensory organs. Destructive
beasts that seek carnage.
AC 12, HP 43, ATK 4 tentacle
+7 (1d8) or wind burst, MV
near (fly), S +3, D +1, C +3, I +2,
W +2, Ch +2, AL C, LV 9
Wind Burst. All creatures
within near of polyp, DEX 15+
or 3d6 damage.
Deflecting Winds. Ranged
attacks against polyp have
DISADV."

Expected behavior
The expected behaviour is that the last ability will read "Deflecting winds. Ranged attacks against polyp have DISADV."
Instead it reads as the below screenshot.

Screenshots

Image

Platform
https://shadowdark-parser-web.vercel.app/index.html

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Chrome
  • Version 0.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions