hubot 13.2.0 → 13.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Listener.mjs +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hubot",
3
- "version": "13.2.0",
3
+ "version": "13.2.1",
4
4
  "author": "hubot",
5
5
  "keywords": [
6
6
  "github",
package/src/Listener.mjs CHANGED
@@ -1,7 +1,6 @@
1
1
  'use strict'
2
2
 
3
3
  import { inspect } from 'node:util'
4
- import { TextMessage } from './Message.mjs'
5
4
  import Middleware from './Middleware.mjs'
6
5
 
7
6
  class Listener {
@@ -97,7 +96,7 @@ class TextListener extends Listener {
97
96
  // callback - A Function that is triggered if the incoming message matches.
98
97
  constructor (robot, regex, options, callback) {
99
98
  function matcher (message) {
100
- if (message instanceof TextMessage) {
99
+ if (typeof message.match === 'function') {
101
100
  return message.match(regex)
102
101
  }
103
102
  }