fantasycalendar / FoundryVTT-Sequencer

This module implements a basic pipeline that can be used for managing the flow of a set of functions, effects, sounds, and macros.
Other
47 stars 25 forks source link

[BUG] - Error on items whose names have a comma #262

Closed crlgn closed 3 months ago

crlgn commented 3 months ago

Describe the bug Automated animations are not triggered when a weapon has a name with the special character "," - such as "crossbow, light". Browser console shows an error: Invalid regular expression: /^crossbow\,light$/gu: Invalid escape (at sequencer-effect-manager.js:198:23)

To Reproduce Steps to reproduce the behavior:

  1. Target a token
  2. Attack using "Crossbow, light" or any weapon with a comma in its name
  3. Verify that attack animation is not triggered
  4. Open Chrome console logs to verify error

Expected behavior Animations should be triggered with no error

Screenshots

image image

Setup:

Active modules:

Additional context Add any other context about the problem here.

Haxxer commented 3 months ago

Fixed in 3.2.11