Skip to content

The matches regex comparator does not always match the regex correctly in conditional effects #3560

Description

@Oshimia

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

If you create a conditional effect and use the "matches regex" comparator using the regex [A-Z]{3} as the expected value will match any capitol letter in a string, when it should only match when there are three capitol letters in a string.

Expected Behavior

When using the regex [A-Z]{3} as the expected value it should only create a match when there are 3 (or more) capital letters in a row.

Steps To Reproduce

  1. Create a conditional effect.
  2. Use the "matches regex" comparator using the regex [A-Z]{3} as the expected value
  3. Add log messages to indicate where matches occur and test against these conditions: test, Test, tesT, TESt, and TEST,
  4. Currently all but test return a match.

Version

5.66.7

What operating system are you using Firebot on?

Windows 11

Relevant log output

Contact Details (Optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions