Skip to content

$cheerMessage regex incorrectly removes text from the cheer message #3493

@CrowbarToolsRobot

Description

@CrowbarToolsRobot

Description

the regex in the $cheerMessage variable will remove any combination of text followed by numbers, eg. "huds601". In addition, cheermotes which include numbers (eg. huds601Cheer) will only remove the Cheer<n> part, resulting in huds601 remaining in the message.

Steps to Reproduce

  1. Create a cheer event which logs $cheerMessage
  2. simulate a cheer event with message cheer100 Test message for huds601 - huds601Cheer42 Hello!
  3. Notice the message in devtools ends up being Test message for - huds601Hello!

Expected Behavior

Message should instead log Test message for huds601 - Hello!

Firebot Version

v5.65.4

Submitted By

dennisoti

Created via Discord.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Dev CompleteRelease PendingIssue has been resolved and is waiting to be packaged as part of a release

    Type

    No fields configured for Bug.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions