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:
Target a token
Attack using "Crossbow, light" or any weapon with a comma in its name
Verify that attack animation is not triggered
Open Chrome console logs to verify error
Expected behavior
Animations should be triggered with no error
Screenshots
Setup:
Foundry Version: 12.328
System Version: DND5e 3.2.1
Sequencer Version: 3.2.10
Browser & version: Google Chrome 126.0.6478.127
Active modules:
Sequencer
socketlib
Automated Animations
D&D Beyond Gamelog
D&D Animations
Dynamic effects using Active Effects (DAE)
libWrapper
Midi QOL
Additional context
Add any other context about the problem here.
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:
Expected behavior Animations should be triggered with no error
Screenshots
Setup:
Active modules:
Additional context Add any other context about the problem here.