Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit d8bd4cb

Browse files
allow other bot mods to get regex matching highlighting (#1136)
1 parent db67d12 commit d8bd4cb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

extension/data/modules/queuetools.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ const self = new Module({
144144
type: 'boolean',
145145
default: true,
146146
description:
147-
'Highlight words in Automoderator report and action reasons which are enclosed in []. Can be used to highlight automod regex matches.',
147+
'Highlight words in bot mods report and action reasons which are enclosed in []. Can be used to highlight bot mods regex matches.',
148148
oldReddit: true,
149149
},
150150
{
@@ -1168,7 +1168,8 @@ Action reason: ${value.data.details}
11681168
if (!$this.hasClass('hl-processed')) {
11691169
$this.addClass('hl-processed');
11701170
const reportText = $this.text();
1171-
if (reportText.indexOf('AutoModerator:') >= 0) {
1171+
1172+
if (botCheckmark.some(bot => reportText.includes(`${bot}:`))) {
11721173
let matches;
11731174
const matchesArray = [];
11741175
while ((matches = regexMatchFinder.exec(reportText))) {

0 commit comments

Comments
 (0)