Skip to content

Commit a43f2ae

Browse files
committed
afd-notifier: fix bug
1 parent b58e10e commit a43f2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

afd-notifcations/notifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ class Notifier {
354354
return Promise.reject('nobots');
355355
}
356356

357-
let rgx = new RegExp(`== ?Nomination of \\[\\[:?${article}\\]\\] for deletion ?==`);
357+
let rgx = new RegExp(`== ?Nomination of \\[\\[:?${mwn.util.getRegExp(article)}\\]\\] for deletion ?==`);
358358
if (rgx.test(text)) {
359359
log(`[C] ${username} was already notified of ${article}`);
360360
return Promise.reject('already-notified');

0 commit comments

Comments
 (0)