matrix-org / go-neb

Extensible matrix bot written in Go
Apache License 2.0
285 stars 91 forks source link

GitHub bot should ignore # when it has a & before it #339

Open Twi1ightSparkle opened 3 years ago

Twi1ightSparkle commented 3 years ago

Describe the bug GH bot reads HTML codes and gets the issue matching the number.

To Reproduce Steps to reproduce the behavior:

  1. Add GH bot to a room
  2. Send a /html message with a HTML code. For example $ ($ sign). Element will render /html $ as $
  3. GH bot returns issue #36

Expected behavior Bot should ignore these codes

All platforms

t3chguy commented 3 years ago

The bot is just looking at the plaintext body, which in your case is the same;

{
    "msgtype": "m.text",
    "format": "org.matrix.custom.html",
    "body": "$",
    "formatted_body": "$"
  }

It should be ignoring # with a & before it - unrelated to HTML markup.