matterbridge icon indicating copy to clipboard operation
matterbridge copied to clipboard

Regex question

Open LickABrick opened this issue 2 years ago • 0 comments

Describe the bug How can I fix this regex? It worked before but suddenly doesn't anymore.

To Reproduce Use: replaceMessages=[ ["<(?!img|a)[^>]*>",""], ["&nbsp;"," "] ]

Expected behavior HTML Tags should be filtered out of the message.

Screenshots/debug logs level=error msg="regexp in msteams.test-teams failed: error parsing regexp: invalid or unsupported Perl syntax: (?!" prefix=gateway

Environment (please complete the following information):

  • OS: Ubuntu 22.04
  • Matterbridge version: output of 1.26

LickABrick avatar Apr 19 '24 13:04 LickABrick